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. printf(“value of x: %d\n”, x);
  15. x = x+1;
  16. }
  17. return 0;
  18. }
  19.  
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:14:12: error: stray ‘\342’ in program
     printf(“value of x: %d\n”, x);
            ^
prog.c:14:13: error: stray ‘\200’ in program
     printf(“value of x: %d\n”, x);
             ^
prog.c:14:14: error: stray ‘\234’ in program
     printf(“value of x: %d\n”, x);
              ^
prog.c:14:15: error: ‘value’ undeclared (first use in this function)
     printf(“value of x: %d\n”, x);
               ^~~~~
prog.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
prog.c:14:21: error: expected ‘)’ before ‘of’
     printf(“value of x: %d\n”, x);
                     ^~
prog.c:14:29: error: stray ‘\’ in program
     printf(“value of x: %d\n”, x);
                             ^
prog.c:14:31: error: stray ‘\342’ in program
     printf(“value of x: %d\n”, x);
                               ^
prog.c:14:32: error: stray ‘\200’ in program
     printf(“value of x: %d\n”, x);
                                ^
prog.c:14:33: error: stray ‘\235’ in program
     printf(“value of x: %d\n”, x);
                                 ^
stdout
Standard output is empty