#include <iostream.h>
using namespace std;
int main ()
{
int angka;
cout<<"Nama = Buccu'"<<endl;
cout<<"Hobby = guling"<<endl;
cout<<">>>>>>>>>>Program Nama Hari<<<<<<<<<<"<<endl;
cout<<"-------------------------------------"<<endl;
cout<<"Input Angka Hari = ";cin>>angka;
cout<<"-------------------"<<endl;
cout<<"Angka : "<<angka<<endl;
cout<<"Nama Hari: ";
switch (angka)
{
case 0 :
cout<<"Hari Minggu";
break;
case 1 :
cout<<"Hari Senin";
break;
case 2 :
cout<<"Hari Selasa";
break;
case 3 :
cout<<"Hari Rabu";
break;
case 4 :
cout<<"Hari Kamis";
break;
case 5 :
cout<<"Hari Jum'at";
break;
case 6 :
cout<<"Hari Sabtu";
break;
default :
cout<<"Hari Tidak Valid";
}
return 0;
}
using namespace std;
int main ()
{
int angka;
cout<<"Nama = Buccu'"<<endl;
cout<<"Hobby = guling"<<endl;
cout<<">>>>>>>>>>Program Nama Hari<<<<<<<<<<"<<endl;
cout<<"-------------------------------------"<<endl;
cout<<"Input Angka Hari = ";cin>>angka;
cout<<"-------------------"<<endl;
cout<<"Angka : "<<angka<<endl;
cout<<"Nama Hari: ";
switch (angka)
{
case 0 :
cout<<"Hari Minggu";
break;
case 1 :
cout<<"Hari Senin";
break;
case 2 :
cout<<"Hari Selasa";
break;
case 3 :
cout<<"Hari Rabu";
break;
case 4 :
cout<<"Hari Kamis";
break;
case 5 :
cout<<"Hari Jum'at";
break;
case 6 :
cout<<"Hari Sabtu";
break;
default :
cout<<"Hari Tidak Valid";
}
return 0;
}
Comments
Post a Comment