#include <iostream>
using namespace std;
int main(){
int n;
double s = 0;
cout << "Input count of salespeople: "; cin >> n;
for(int i = 0; i < n; i++){
cout << "Input " << (i + 1) << "-salesperson' gross sales: "; cin >> s;
cout << "Earnings: " << (200 + s * 0.09) << "$" << endl;
}
}
Comments
Leave a comment