fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.  
  7. int first=0,second=1,third,i,n;
  8.  
  9. printf(“Enter the number of elements:);
  10.  
  11. scanf(%d”,&n);
  12.  
  13. printf(“\n%d”,first,second);
  14.  
  15. for(i=2;i<n;i++)
  16.  
  17. {
  18.  
  19. third=first+second;
  20.  
  21. printf(%d”,third);
  22.  
  23. first=second;
  24.  
  25. second=third;
  26.  
  27. }
  28.  
  29. return 0;
  30.  
  31. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:9:1: error: stray '\342' in program
 printf(“Enter the number of elements:”);
 ^
prog.c:9:1: error: stray '\200' in program
prog.c:9:1: error: stray '\234' in program
prog.c:9:11: error: 'Enter' undeclared (first use in this function)
 printf(“Enter the number of elements:”);
           ^
prog.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:9:17: error: expected ')' before 'the'
 printf(“Enter the number of elements:”);
                 ^
prog.c:9:17: error: stray '\342' in program
prog.c:9:17: error: stray '\200' in program
prog.c:9:17: error: stray '\235' in program
prog.c:11:1: error: stray '\342' in program
 scanf(“%d”,&n);
 ^
prog.c:11:1: error: stray '\200' in program
prog.c:11:1: error: stray '\234' in program
prog.c:11:10: error: expected expression before '%' token
 scanf(“%d”,&n);
          ^
prog.c:11:10: error: stray '\342' in program
prog.c:11:10: error: stray '\200' in program
prog.c:11:10: error: stray '\235' in program
prog.c:13:1: error: stray '\342' in program
 printf(“\n%d”,first,second);
 ^
prog.c:13:1: error: stray '\200' in program
prog.c:13:1: error: stray '\234' in program
prog.c:13:1: error: stray '\' in program
prog.c:13:1: error: stray '\342' in program
prog.c:13:1: error: stray '\200' in program
prog.c:13:1: error: stray '\235' in program
prog.c:13:14: error: 'd' undeclared (first use in this function)
 printf(“\n%d”,first,second);
              ^
prog.c:21:1: error: stray '\342' in program
 printf(“%d”,third);
 ^
prog.c:21:1: error: stray '\200' in program
prog.c:21:1: error: stray '\234' in program
prog.c:21:11: error: expected expression before '%' token
 printf(“%d”,third);
           ^
prog.c:21:11: error: stray '\342' in program
prog.c:21:11: error: stray '\200' in program
prog.c:21:11: error: stray '\235' in program
stdout
Standard output is empty