Program Fibonanci C++ Ahmad 6:38 PM Ahmad #include <iostream> using namespace std; int main() { int x=1, a=0, b=0; for (int i=1; i<10; i++) { cout << x <<" " ; a=b; b=x; x=a+b; } return 0; } Twitter Facebook Google Tumblr Pinterest
No comments:
Post a Comment