#include<iostream>
using namespace std;
int main()
{
float state1 = 0;
float state2 = 0;
float total = 0;
float commission = 0;
cout<< "Enter sales in state1" <<endl;
cin>>state1;
cout<< "Enter sales in state2" <<endl;
cin>>state2;
cout<< "Enter the commission rate" << endl;
cin >> commission;
total = state1 + state2;
total = total * commission;
cout<< "Total commission on the sales of state 1 and state 2 is "<<total;
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKQp7CiAgICBmbG9hdCBzdGF0ZTEgPSAwOwogICAgZmxvYXQgc3RhdGUyID0gMDsKICAgIGZsb2F0IHRvdGFsID0gMDsKICAgIGZsb2F0IGNvbW1pc3Npb24gPSAwOwogICAgY291dDw8ICJFbnRlciBzYWxlcyBpbiBzdGF0ZTEiIDw8ZW5kbDsKICAgIGNpbj4+c3RhdGUxOwogICAgY291dDw8ICJFbnRlciBzYWxlcyBpbiBzdGF0ZTIiIDw8ZW5kbDsKICAgIGNpbj4+c3RhdGUyOwogICAgY291dDw8ICJFbnRlciB0aGUgY29tbWlzc2lvbiByYXRlIiA8PCBlbmRsOwogICAgY2luID4+IGNvbW1pc3Npb247CiAgICB0b3RhbCA9IHN0YXRlMSArIHN0YXRlMjsKICAgIHRvdGFsID0gdG90YWwgKiBjb21taXNzaW9uOwogICAgY291dDw8ICJUb3RhbCBjb21taXNzaW9uIG9uIHRoZSBzYWxlcyBvZiBzdGF0ZSAxIGFuZCBzdGF0ZSAyIGlzICAiPDx0b3RhbDsKICAgIAogICAgcmV0dXJuIDA7Cn0=