#include<stdio.h> void main() { int a=1; int n; while(n!=0) { a=a*n; n=n-1; }
Standard input is empty
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
Standard output is empty