not working
pradyut bhattacharya
pradyut100@yahoo.com
Wed Sep 10 13:27:00 GMT 2003
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
More information about the Gcc
mailing list