C++
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
?? nilai;
?? nilai_huruf;
raptor_prompt_variable_zzyz
="masukkan nilai :";
cout <<
raptor_prompt_variable_zzyz << endl;
cin >> nilai;
if (nilai<0 &&
nilai<=20)
{
nilai_huruf ='e';
}
else
{
if (nilai>20 &&
nilai<=40)
{
nilai_huruf ='d';
}
else
{
if (nilai>40 &&
nilai<=60)
{
nilai_huruf ='c';
}
else
{
if (nilai>60 &&
nilai<=80)
{
nilai_huruf ='b';
}
else
{
nilai_huruf ='a';
}}}}
cout << "nilai anda
:" << endl; cout << nilai << endl; cout
<< "nilai huruf :" << endl; cout <<
nilai_huruf << endl;
return 0;
}