Tugas Kuliah Dasar Pemograman



using namespace std;

int main()


float angka01,angka02,hsl;

char opr;

cout<<“=============SIMPLE CALCULATOR================\n”;

cout<<“=========={VERY EASY DAN SIMPLE}==============\n”;

cout << “Let’s Try…!!!” << endl;

cout <<“Insert the First Number =”; cin >>angka01;

cout <<“Insert the Oprasional =”; cin>>opr;

cout <<“Insert the Second Number =”; cin >>angka02;

if (opr==’+’) hsl=angka01+angka02;

if (opr==’-‘) hsl=angka01-angka02;

if (opr==’*’) hsl=angka01*angka02;

if (opr==’/’) hsl=angka01/angka02;

cout <<“The velue is =” <<hsl<<endl;

cout <<“\n”;

cout <<“Made by “<<endl;

cout <<“Name : Ahmad Afif\n”;

cout <<“Study Program: Informatic Enginering\n”;

cout <<“Stambuk : 54853\n”;

cout <<endl;

cout <<“Thank You Very Much\n”;

cout <<“bye-bye”;

return 0;



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