#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int x;
int a;
int b;
int c;
int i;
raptor_prompt_variable_zzyz ="Input Number ";
cout << raptor_prompt_variable_zzyz << endl;
cin >> x;
a =0;
b =1;
c =1;
i =1;
while (!(i>x))
{
cout << c << endl; c =b+a;
a =b;
b =c;
i =i+1;
}
return 0;
}
Tidak ada komentar:
Posting Komentar