Jumat, 08 Juli 2011

Program IP


met mencoba yccc, , , , ^_^

#include <iostream.h>
#include <conio.h>
int main() {
float IP;
cout << "Masukkan Indeks Prestasi Anda :";
cin >> IP;
if (IP >=0 && IP <=2.0){
            cout << "Maksimum SKS yang boleh diambil = 20" << endl;
} else if(IP >=2.01 && IP <=3.0){
            cout << "Maksimum SKS yang boleh diambil = 22" << endl;
} else if (IP >=3.01 && IP <=4.0){
            cout << "Maksimum SKS yang boleh diambil = 24" << endl;
} else cout << "IP Ilegal \n";
getch();
return 0;
}

Tidak ada komentar:

Posting Komentar