fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int N;
  5. //scanf("%d", &N);
  6. N = 7;
  7. float x = 0;
  8. float y = 1;
  9. float xy;
  10. int F = 1;
  11. while ( F <= N ){
  12. printf("\n%.0lf", x);
  13. // Sleep(250);
  14. printf("\n%.0lf", y);
  15. // Sleep(250);
  16. xy = x + y;
  17. y += xy;
  18. x = xy;
  19. F++;
  20. }
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 4408KB
stdin
Standard input is empty
stdout
0
1
1
2
3
5
8
13
21
34
55
89
144
233