#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: ";
if (angka==0)
cout<<"Hari Minggu";
else if (angka==1)
cout<<"Hari Senin";
else if (angka==2)
cout<<"Hari Selasa";
else if (angka==3)
cout<<"Hari Rabu";
else if (angka==4)
cout<<"Hari Kamis";
else if (angka==5)
cout<<"Hari Jum'at";
else if (angka==6)
cout<<"Hari Sabtu";
else
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: ";
if (angka==0)
cout<<"Hari Minggu";
else if (angka==1)
cout<<"Hari Senin";
else if (angka==2)
cout<<"Hari Selasa";
else if (angka==3)
cout<<"Hari Rabu";
else if (angka==4)
cout<<"Hari Kamis";
else if (angka==5)
cout<<"Hari Jum'at";
else if (angka==6)
cout<<"Hari Sabtu";
else
cout<<"Hari Tidak Valid";
return 0;
}
Comments
Post a Comment