Mencari Nilai:
#include <iostream>/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int nilai;
cout<<"masukan nilai =";cin>>nilai;
if(nilai>=80&&nilai<=100)
cout<<"A";
else if(nilai>=65&&nilai<=79)
cout<<"B";
else if(nilai>=55&&nilai<=64)
cout<<"C";
else if(nilai>=30&&nilai<=54)
cout<<"D";
else
cout<<"E";
return 0;
}
Program Raptornya:
Terimakasih😊
0 komentar:
Posting Komentar