fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a;
  6.  
  7. printf("整数を入力せよ:"); scanf("%d", &a);
  8.  
  9. if (a % 5);
  10. puts("その数は5で割り切れません。");
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5316KB
stdin
7
stdout
整数を入力せよ:その数は5で割り切れません。