6.1al

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { char kode; puts("====================="); puts("Latihan Switch Case"); puts("====================="); puts("MASUKAN KODE BARANG [A/B/C]");cin>>kode; printf("kode yang dipilih:%c\n",kode); switch (kode){ case 'A':case'a': puts("Alat Olaharaga"); break; case 'B':case'b': puts("Alat Elektonik"); break; case 'C':case'c': puts("Alat Masak"); break; default : puts("Anda Salah Memasukan Kode"); } puts("====================="); char nama [20]="Zacky Ahmad S"; char email[40]="zackyahmadsyahputra4@email.com"; printf("Nama\t:%s\n",nama); printf("Email\t:%s",email); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines