fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4. int a,b,c,cnt,i;
  5. a=1;
  6. b=1;
  7. cnt=0;
  8. printf("%d\n%d\n",a,b);
  9. while(cnt<18){
  10. c=a+b;
  11. printf("%d\n",c);
  12. cnt++;
  13. a=b;
  14. b=c;
  15. }
  16. return 0;
  17. }
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