Tuesday, January 20, 2015

Membuat program penilaian ipk mahasiswa c++

No comments
#include <iostream.h>
void main()
{
int ipk;
cout<<"masukkan ipk anda : ";
cin>>ipk;

if (ipk>=35.00 && ipk<=40.00)
{
cout<<"IPK ANDA SANGAT MEMUASKAN"<<endl;
}
else if (ipk>=30.00 && ipk<=34.00)
{
cout<<"IPK ANDA MEMUASKAN"<<endl;
}
else if (ipk>=25.00 && ipk<=29.00)
{
cout<<"IPK ANDA BAIK SEKALI"<<endl;
}
else if (ipk>=20.00 && ipk<=24.00)
{
cout<<"IPK ANDA BAIK"<<endl;
}
else if (ipk>=10.00 && ipk<=20.00)
{
cout<<"IPK ANDA KURANG BAIK"<<endl;
}
else
{
cout<<"penulisan yang benar seperti 35.00"<<endl;
}



}

No comments:

Post a Comment

Entri Halaman

Labels