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