fork download
  1. #include<stdio.h>
  2. void main()
  3. {
  4. int a=1;
  5. int n;
  6. while(n!=0)
  7. {
  8. a=a*n;
  9. n=n-1;
  10. printf(:%d",a);
  11.  
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:2: warning: return type of ‘main’ is not ‘int’
prog.c: In function ‘main’:
prog.c:10: error: expected expression before ‘:’ token
prog.c:10:11: warning: missing terminating " character
prog.c:10: error: missing terminating " character
prog.c:12: warning: format not a string literal and no format arguments
prog.c:12: error: expected ‘;’ before ‘}’ token
prog.c:12: error: expected declaration or statement at end of input
stdout
Standard output is empty