This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

not working


sir,
    i tried a fibonacci generating program.
it did not work out correctly. the source code

#include <iostream.h>
void main()
{
int a, b, c;
a=0;
b=1;
cout <<a <<endl <<b <<endl;
for (int i=0; i<=10; i++)
{
c=a+b;
cout <<c <<endl;
a=b;
b=c;
}
}

P K Bhattacharya
India

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]