#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int num_1=0;
int num_2=1;
int answer;
cout<<num_1<<" "<<num_2;
for(int count=0;count<=5;count++)
{
answer = num_1 + num_2;
cout<<" "<<answer<<" ";
num_1=num_2;
num_2=answer;
}
return 0;
}
Copyright © 2013 C/C++ | Java | PhP | HTML & CSS | MYSQL. Privacy Policy
0 comments:
Post a Comment