Program Kode Hari


#include

main ()
{
char hari;

cout < < "Masukkan kode hari : "; cin >> hari;

if (hari==’a’||hari == ‘A’){
cout << "Senin";} else if (hari=='b'||hari=='B'){ cout << "Selasa";} else if (hari=='c'||hari== 'C'){ cout << "Rabu";} else if (hari=='d'||hari== 'D'){ cout << "Kamis";} else if (hari=='e'||hari=='E'){ cout << "Jumat";} else if (hari=='f'||hari=='F'){ cout << "Sabtu";} else if (hari=='g'||hari== 'G'){ cout << "Minggu";} else cout << "MAAF KODE HARINYA SALAH"; return 0; }


One response to “Program Kode Hari”

Leave a Reply