Advertisement
Qlynx

NAMA BULAN

Sep 16th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. //CODING BY QLYNX
  5.  
  6. int nomor_bulan;
  7. int main (){
  8.  
  9. cout << "Masukkan Angka Bulan : " << endl;
  10. cin >> nomor_bulan;
  11.  
  12. switch (nomor_bulan){
  13.     case 1  :   cout << "Januari"   ; break;
  14.     case 2  :   cout << "Februari"  ;  break;
  15.     case 3  :   cout << "Maret"     ;  break;
  16.     case 4  :   cout << "April"     ; break;
  17.     case 5  :   cout << "Mei"       ;  break;
  18.     case 6  :   cout << "Juni"      ;  break;
  19.     case 7  :   cout << "Juli"      ;  break;
  20.     case 8  :   cout << "Agustus"   ;  break;
  21.     case 9  :   cout << "September" ;  break;
  22.     case 10 :   cout << "Oktober"   ;  break;
  23.     case 11 :   cout << "November"  ;  break;
  24.     case 12 :   cout << "Desember"  ; break;
  25.     default :   cout << "Bulan Tidak Valid";  break ;
  26.    
  27. return 0;  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement