#include <iostream>
using namespace std;
int main() {
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 \t: %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 Memasukkan Kode";
}
cout << '\n';
cout << "------------------------------------------" << endl;
printf("nama \t: la ode ian");
printf("\nnim \t: 84939383ii");
return 0;
}