Im a student & and just started learning c++...
My professor assigned me a program to get output as:
1 1 2 3 5 8 13 21 34
With the use of while loop...
i hv made this>>
#include<iostream.h>
#include<conio.h>
main()
{
int n=1,m=2;
cout<<n<<' '<<n<<' '<<m<<' '<<n+m<<' '<<n+(2*m)<<' '<<4*m<<' '<<n+(6*m)<<' '<<n+(10*m)<<' '<<(17*m);
getch();
}
>>>>>>>>>>>>>>>>
Any help?
to make it using while__?