Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

// ANWAR UDIN SAYFULLOH

// 122120144

#include <iostream> //header

using namespace std; // library

int main(){ //main

float nilai; // variable

cout <<endl<< "================================="<<" INFORMASI KETERANGAN IPK


MAHASISWA ITERA "<<"================================="<<endl; // output judul program

cout << "Masukkan IPK skala 4 : "; // output

cin >> nilai; // input variable nilai

if (nilai<=2){ // mulai percabangan 1

cout <<"~ ~ ~ ~ ~"<< endl<< "ket. tidak lulus"<<endl; // output nilai < 2

}else if (nilai<=2.75){ // false 1 percabangan 2

cout <<"~ ~ ~ ~ ~"<< endl<< "ket. lulus memuaskan"<< endl; // output nilai < 2.75

}else if (nilai<=3.5){ // false 2 percabangan 3

cout <<"~ ~ ~ ~ ~"<< endl<< "ket. lulus sangat memuaskan "<< endl; // output nilai < 3.5

}else if (nilai<=4.0){ // false 3 percabangan 4

cout <<"~ ~ ~ ~ ~"<< endl<< "ket. lulus dengan pujian"<< endl; // output nilai < 4

}else if (nilai<=9999999){ // false 4 percabangan 5

cout <<"~ ~ ~ ~ ~"<< endl<< "ket. DILUAR NALAR"<< endl; // output nilai < 9999999

return 0; // program selesai di jalankan dengan sukses

You might also like