Assalamualaikum wr.wb
hy guys, what's you guys. how are you today. i hope you always be better than yesterday.
maaf nih guys lagi sibuk2nya nih memuat laporan atau biasa disebut tugas
jadi nih blog jadinya kudet yah hehehe ( kurang upddate) tapi tenang karena saya selalu aktif kok heheeh.
ok i dont wanna waste your time, you"ve to see my program let's check this out :
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int x;
cout<<"menentukan nilai ujian siswa "<<endl;
cout<<"masukkan nilai =";cin>>x;
if(x<=100&&x>=81){
cout<<"A";
}
else if(x<=80&&x>=61){
cout<<"B";
}
else if(x<=60&&x>=41){
cout<<"C";
}
else if(x<=40&&x>=21){
cout<<"D";
}
else{
cout<<"E";
}
return 0;
}
0 komentar:
Posting Komentar