#include<iostream>
#include<conio>
int main()
{
char a[10];
int nilai;
cout<<"masukkan nama kamu :";cin>>a;
cout<<"masukkan nilai :";cin >>nilai;
if (nilai>=90)
cout<<"A";
else if (nilai>=80)
cout<<"B";
else if (nilai>=60)
cout<<"C";
else if (nilai<=40)
cout<<"D";
cin>>a;
cout<<"namamu :"<<a;
getch();
}
0 comments:
Post a Comment