menentukan IP c++



allow… moga kalian gak bosen baca coretan saya..
sekarang belajar bikin program menentukan IP kamu pke c++
kalian coba aja di kompi maasing2, ni listing programnya
#include
#include
int main() {
float IP;
cout <> IP;
if (IP >=0 && IP <=2.0){
cout << "Maksimum SKS yang boleh diambil = 20" <=2.01 && IP <=3.0){
cout << "Maksimum SKS yang boleh diambil = 22" <=3.01 && IP <=4.0){
cout << "Maksimum SKS yang boleh diambil = 24" << endl;
} else cout << "IP Ilegal \n";
getch();
return 0;
}
semoga bermanfaat

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: