C++ Nilai

#include<iostream>
#include<conio.h>
intmain(){
char nilai;
cout<< "==NILAIKU==\n";
cout<< "===========\n\n";
cout<< "MasukkannilaiAnda(A/B/C/D/E):";
cin>> nilai;
if ((nilai=='A')||(nilai=='a')){
cout<< "SEMPURNA...\n";
}else if ((nilai=='B')||(nilai=='b')){
cout<< "GOOOOD...\n";
}else if ((nilai=='C')||(nilai=='c')){
cout<< "NGEPAS PISAN...\n";
}else if ((nilai=='D')||(nilai=='d')){
cout<< "SABAR YA...\n";
}else{
cout<< "JANGAN BERHARAP LAGI!\n";
}
getch();}

0 Response to "C++ Nilai"

Posting Komentar