fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x=1,y=1,z ;
  6. while(x<100){
  7. cout << x << " " ;
  8. z = x + y;
  9. x= y ;
  10. y = z;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
1 1 2 3 5 8 13 21 34 55 89