#include <iostream>
using namespace std;
int main(){
int a, b, c, d;
a = 8 + 4 * 2 / 4;
b = (8 + 4) * 2 / 4;
c = 10 % 3 * 2;
d = 10 % (3 * 2);
cout<<"A = 8 + 4 * 2 / 4"<<endl;
cout<<"B = (8 + 4) * 2 /4"<<endl;
cout<<"C = 10 % 3 * 2"<<endl;
cout<<"D = 10 % (3 * 2)"<<endl;
cout<<"\nHasil dari A = "<<a<<endl;
cout<<"Hasil dari B = "<<b<<endl;
cout<<"Hasil dari C = "<<c<<endl;
cout<<"Hasil dari D = "<<d<<endl;
return 0;
}
Komentar
Posting Komentar