Listing program C++
#include<iostream>
using namespace std;
int main ()
{
int bil1,bil2,kli,bgi,krg,tbh;
cout<<"masukkan bilangan 1:";
cin>>bil1;
cout<<endl;
cout<<"masukkan bilangan 2:";
cin>>bil2;
cout<<endl;
tbh=bil1+bil2;
krg=bil1-bil2;
bgi=bil1/bil2;
kli=bil1*bil2;
cout<<"hasilnya bil1+bil2:"<<tbh;cout<<endl;
cout<<"hasilnya bil1-bil2:"<<krg;cout<<endl;
cout<<"hasilnya bil1/bil2:"<<bgi;cout<<endl;
cout<<"hasilnya bil1*bil2:"<<kli;cout<<endl;
return 0 ;
}
silahkan di coba :)
Comments
Post a Comment