Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- //CODING BY QLYNX
- int nomor_bulan;
- int main (){
- cout << "Masukkan Angka Bulan : " << endl;
- cin >> nomor_bulan;
- switch (nomor_bulan){
- case 1 : cout << "Januari" ; break;
- case 2 : cout << "Februari" ; break;
- case 3 : cout << "Maret" ; break;
- case 4 : cout << "April" ; break;
- case 5 : cout << "Mei" ; break;
- case 6 : cout << "Juni" ; break;
- case 7 : cout << "Juli" ; break;
- case 8 : cout << "Agustus" ; break;
- case 9 : cout << "September" ; break;
- case 10 : cout << "Oktober" ; break;
- case 11 : cout << "November" ; break;
- case 12 : cout << "Desember" ; break;
- default : cout << "Bulan Tidak Valid"; break ;
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement