/***PROGRAM MENCETAK LULUS/PERBAIKAN/GAGAL***/
#include<iostream>
using namespace std;
int main() {
/**DEKLARASI**/
int x;
/*ALGORITMA*/
cout<<"PROGRAM MENCETAK NILAI LULUS/PERBAIKAN/GAGAL"<<endl;
cout<<"Masukan nilai="; cin>>x;
if (x>=75)
{cout<<"LULUS"<<endl; }
else
if ((x<75) and (x>50))
{cout<<"Perbaikan"<<endl; }
else
{cout<<"GAGAL"<<endl; }
system("PAUSE");
}
No comments:
Post a Comment