#include<iostream.h>
#include<conio>
switch (nama) {
case label1 : aksi1;break;
case label2 : aksi2;break;
case label3 : aksi3;break;
case labelN:aksiN;break;
default:aksix;
}
if(Nilai_angka >=90)
cout << "Nilai = A" << endl;
else if (Nilai_angka > =80)
cout << "Nilai = B" << endl;
else if (Nilai_angka > =70)
cout << "Nilai = C" << endl;
else if (Nilai_angka > =60)
cout << "Nilai = D" << endl;
else
cout << "Nilai = F" << endl;
cout << "Nilai = A" <<endl;
break;
cout << "Nilai = B" <<endl;
break;
cout << "Nilai = C" <<endl;
break;
cout << "Nilai = D" <<endl;
break;
cout << "Nilai = E" <<endl;
break;
cout << "Nilai = F" <<endl;
return 0;
}
Tidak ada komentar:
Posting Komentar