#include <iostream>
using namespace std;
int main()
{
double pay;//Paid
double am_new;//the amount of his new weekly pay +2.0%
double am_new2;//the amount of his new weekly pay +2.5%
cout << "Enter paid: ";
cin >> pay;
am_new = pay + (pay * 2.0) / 100.0;
am_new2 = pay + (pay * 2.5) / 100.0;
cout << "+2.0%=" << am_new << endl;
cout << "+2.5%=" << am_new2 << endl;
return 0;
}
Comments
Leave a comment