// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
int main() {
int i = 10;
int a = 0;
int b = 1;
cout << a << " " << b << " ";
for(int k =1 ; k<=i;k++){
int value = a+b;
cout<<value<<" ";
a=b;
b=value;
}
return 0;
}
Thanks you for commenting your questions. I will see question and respond you.