fork download
  1. /* Helloプログラム */
  2.  
  3. #include <stdio.h>
  4.  
  5. int main(void) {
  6. for (int i = 1; i<=10; i++) {
  7. if(i % 2 == 0) {
  8. printf("%d 偶\n" , i);
  9. }else {
  10. printf("%d 奇\n" , i);
  11. }
  12.  
  13. }
  14. return 0;
  15.  
  16. }
  17.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
1 奇
2 偶
3 奇
4 偶
5 奇
6 偶
7 奇
8 偶
9 奇
10 偶