fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b;
  5. printf("二つの整数を入力してください。\n");
  6. printf("整数x:"); scanf("%d",&a);
  7. printf("整数y:"); scanf("%d",&b);
  8.  
  9. printf("xの値はyの%d%%です。\n",a/b*100)
  10.  
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
54
84
compilation info
prog.c: In function ‘main’:
prog.c:11:2: error: expected ‘;’ before ‘return’
  return 0;
  ^~~~~~
stdout
Standard output is empty