#include <iostream>
usingnamespace std;
int main()
{
int sms,ammount;
int contract;
cout << "How many SMS's do you send per month?" <<endl;
cin >> sms;
cout <<"How many do you pay for your messages?"<<endl;
cin >> ammount;
cout << "Do you have a contract y\n (y = 1) (n = 2) ?" << endl;
cin >> contract;
if (contract = 1){
sms = sms - 20;
sms = sms * ammount;
cout <<"Your bill is R"<<sms<<endl;
}
if (contract = 2){
sms = sms * ammount;
cout << "Your bill is R"<<sms<<endl;
}
return 0;
}