#include<iostream>
#include<conio>
void main()
{
int a,b,c,d,e,f,g ;
cout<<"masukkan bilangan 1 = "; cin>>a;
cout<<"masukan bilagan 2 = "; cin>>b;
cout<<endl;
c=a+b;
d=a-b;
e=a*b;
f=a/b;
g=a%b;
cout <<" hasil penjumlahan = " <<c<<endl;
cout <<" hasil pengurangan = " <<d<<endl;
cout <<" hasil perkalian = " <<e<<endl;
cout <<" hasil pembagian (div) = " <<f<<endl;
cout <<" hasil pembagian (mod) = " <<g<<endl;
getch();
0 comments:
Post a Comment