fork download
  1. #include <stdio.h>
  2.  
  3. enum { MAX = 25 };
  4.  
  5. int main(a,b) {
  6. static int flag;
  7. if(!flag++) {
  8. main(1,1);
  9. } else if(flag-1 <= MAX) {
  10. printf("%d ", a);
  11. main(b, a+b);
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025