#include<iostream.h>
#include<conio.h>
void main() {
int nilai;
cout <<"Nilai : ";
cin>>nilai;
if(nilai>80){
cout <<"Nilainya A";
} else if(nilai> 70) {
cout <<"Nilainya B";
} else if (nilai> 60){
cout <<"Nilainya C";
} else {
cout <<"Nilainya D";
}
getch();
}
Sign up here with your email
ConversionConversion EmoticonEmoticon