fork download
  1. #include <stdio.h>
  2. void table()
  3. {
  4. int n,i;
  5. printf("enter any no:");
  6. scanf("%d",&n);
  7. for(i=1;i<=10;i++)
  8. {
  9. printf("%d*%d=%d",n,i,n*i);
  10. printf("\n");
  11. }
  12.  
  13. int main(void) {
  14. table();
  15. // your code goes here
  16. return 0;
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
9
compilation info
prog.c: In function 'table':
prog.c:13:5: warning: 'main' is normally a non-static function [-Wmain]
 int main(void) {
     ^
prog.c:17:1: error: expected declaration or statement at end of input
 }
 ^
stdout
Standard output is empty