#include <iostream>
#include <conio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main()
{
cout<<"Program Perhitungan Nilai"<<endl;
int bil;
cout<<"Masukkan nilai anda : ";
cin>>bil;
if(bil<=50)
cout<<"Anda Gagal";
else if(bil<=75)
cout<<"Nilai Anda adalah = C";
else if(bil<90)
cout<<"Nilai Anda adalah = B";
else
cout<<"Nilai Anda adalah = A";
getch();
}
Outputnya seperti ini :
Subscribe to:
Post Comments (Atom)
0 Response to "Program perhitungan nilai dengan Dev - C++"
Post a Comment