fork download
  1. /*******************************************************************’
  2. Author: Caitlin Gover
  3. Date: September 22, 2017
  4. Course: CMIS 102
  5. Description: Unique While-End C Code
  6. **********************************************************************/
  7. #include <stdio.h>
  8.  
  9. int main(void) {
  10. /*define variables*/
  11. int x = 5;
  12. /* while loop execution*/
  13. while( x < 18)
  14. {
  15. printf(“value of x: %d\n”, x);
  16. x = x+1;
  17. }
  18. return 0;
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:15:12: error: stray ‘\342’ in program
     printf(“value of x: %d\n”, x);
            ^
prog.c:15:13: error: stray ‘\200’ in program
     printf(“value of x: %d\n”, x);
             ^
prog.c:15:14: error: stray ‘\234’ in program
     printf(“value of x: %d\n”, x);
              ^
prog.c:15:15: error: ‘value’ undeclared (first use in this function)
     printf(“value of x: %d\n”, x);
               ^~~~~
prog.c:15:15: note: each undeclared identifier is reported only once for each function it appears in
prog.c:15:21: error: expected ‘)’ before ‘of’
     printf(“value of x: %d\n”, x);
                     ^~
prog.c:15:29: error: stray ‘\’ in program
     printf(“value of x: %d\n”, x);
                             ^
prog.c:15:31: error: stray ‘\342’ in program
     printf(“value of x: %d\n”, x);
                               ^
prog.c:15:32: error: stray ‘\200’ in program
     printf(“value of x: %d\n”, x);
                                ^
prog.c:15:33: error: stray ‘\235’ in program
     printf(“value of x: %d\n”, x);
                                 ^
stdout
Standard output is empty