#include <iostream>
#include <string>
using namespace std;
int main(){
int hari;
cout<<"\t\tPROGRAM KONVERSI ANGKA KE HARI"<<endl<<endl;
cout<<"Masukkan nilai untuk melihat hari : ";
cin>>hari;
if (hari==1){
cout << "Hari Senin"<<endl;
}else{
if(hari==2){
cout << "Hari Selasa"<<endl;
}else{
if(hari==3){
cout<< "Hari Rabu"<<endl;
}else{
if (hari==4){
cout<<"Hari Kamis"<<endl;
}else{
if (hari==5){
cout<<"Hari Jumat"<<endl;
}else{
if(hari==6){
cout<<"Hari Sabtu"<<endl;
}else{
cout<<"Hari Minggu"<<endl;
}
}
}
}
}
}
return 0;
}
raptornya
selamat mencoba :)
Comments
Post a Comment