#include <iostream>
using namespace std;
int main() {
//Teknik Informatika (Semester 3)
//Nama : Viska Tia Faiza
//NIM : 3420230008
char kode;
cout<<"------------------------------"<<endl;
cout<<" Latihan Switch Case"<<endl;
cout<<"------------------------------"<<endl;
cout<<"MASUKAN KODE BARANG [A/B/C]: ";cin>>kode;
cout<<"\n";
printf("Kode yang dipilih: %c\n", kode);
switch (kode) {
case 'A': case 'a':
cout<<"Alat Olah Raga";
break;
case 'B': case 'b':
cout<<"Alat Elektronik";
break;
case 'C': case 'c':
cout<<"Alat Masak";
break;
default:
cout<<"Anda Salah Memasukan Kode";
}
cout<<'\n';
cout<<"------------------------------"<<endl;
char nama[20] = "Viska Tia Faiza";
char email[30] = "viskatiafaiza31@gmail.com";
printf("Nama\t: %s\n", nama);
printf("Email\t: %s", email);
return 0;
}