fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int counter = 10;
  5. // your code goes here
  6. while (counter > 0);
  7. {
  8. printf("%d",
  9. printf("."*counter);
  10. printf("\n");
  11. --counter;
  12.  
  13. }
  14. }
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:9:17: error: invalid operands to binary * (have 'char *' and 'int')
       printf("."*counter);
                 ^
prog.c:9:26: error: expected ')' before ';' token
       printf("."*counter);
                          ^
prog.c:13:6: error: expected ';' before '}' token
      }
      ^
stdout
Standard output is empty