#include const int NO = 30; using namespace std; void main() { int i = 1; int j = 1; for(int k = 1; k < NO; k++) { int a = j; j += i; i = a; } cout << "the no is: " << j << endl; }
#include const int NO = 30; using namespace std; void main() { int i = 1; int j = 1; for(int k = 1; k < NO; k++) { int a = j; j += i; i = a; } cout << "the no is: " << j << endl; }