This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
not working
- From: pradyut bhattacharya <pradyut100 at yahoo dot com>
- To: gcc at gnu dot org
- Date: Wed, 10 Sep 2003 02:56:59 -0700 (PDT)
- Subject: 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