fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int day;
  5. printf("何日ですか?");
  6. scanf("%d", &day);
  7.  
  8. if (day==3 || day == 4||day ==5||day == 6)
  9. {printf("祝日です。\n");}
  10.  
  11. else if (day ==11||day == 18||day ==25)
  12. {printf("日曜日です。\n");}
  13. else {printf("平日です");}
  14. return 0;
  15. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
何日ですか?平日です