a reflection of "human" memories..

Program C++ Modul 2 Technology version

/*PROGRAM*/
#pragma argsused
#include <iostream.h>
#include <conio.h>
#include <math.h>
int main()
{
int nilai;
cout<<“Masukkan Nilai: “;
cin>>nilai;
if (nilai <20)
cout<<“Nilai E”<<endl;
else
if (nilai <40)
cout<<“Nilai D”<<endl;
else
if (nilai <60)
cout<<“Nilai C”<<endl;
else
if (nilai <80)
cout<<“Nilai B”<<endl;
else
if (nilai <100)
cout<<“Nilai A”<<endl;
else
cout<<“false”<<endl;
getch();
}

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