Sabtu, 19 Maret 2016

KASUS 4.4


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;

int main(int argc, char** argv) {
float c,hasil,x,b,mhs,a;
cout<<"Masukan jumlah mahasiswa : ";
cin>>mhs;
x=1;
while(!(x>mhs)){
cout<<"Masukan Nilai UAS : ";
cin>>a;
cout<<"Masukan Nilai UTS : ";
cin>>b;
cout<<"Masukan Nilai Tugas : ";
cin>>c;
hasil=(a+b+c)/3;
cout<<"Nilai Rata-rata Mahasiswa ke-"<<x<<" adalah "<<hasil<<endl;
x=x+1;
}
return 0;

}
Output :


Raptor :

0 komentar:

Posting Komentar