Algoritma6.1 

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; // Nama : Nagita Elsa // Nim : 3420230026 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 di pilih \t: %c \n ", kode); switch (kode) { case 'A': case 'a': cout <<" Alat Mandi "; break; case 'B': case 'b': cout <<" alat makan "; break; case 'C': case 'c': cout <<" alat bersih bersih "; break; default: cout <<" KODE SALAH "; } cout <<"\n"; cout <<"==========================================="; cout <<"\n"; printf (" Nama \t\t : Nagita Elsa \n"); printf (" Email\t\t : nagitaelsa39@gmail.com"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines