- Biodata
- Lain Lain
- Portofolio ALPRO
- Tugas Pribadi
- Tugas Kelompok
- Refleksi
- DIKTAT
- Codingan Program
- Praktikum
Sabtu, 16 April 2016
1. Declare an enumerated type m onth_t and rewrite the following if statement, assuming that cur_month is type month_t instead of type int . Also, write the equivalent switch statement. if (cur_month == 1) printf("Happy New Year\n"); else if (cur_month == 6) printf("Summer begins\n"); else if (cur_month == 9) printf("Back to school\n"); else if (cur_month == 12) printf("Happy Holidays\n");
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar