You are viewing a single comment's thread. Return to all comments →
And this is the Solution in c++
double mealCost; int tipPercent; int taxPercent; int totalCost; cin >> mealCost; cin >> tipPercent; cin >> taxPercent; tipPercent = round(mealCost * tipPercent/100); taxPercent = round(mealCost * taxPercent/100); totalCost = mealCost + tipPercent + taxPercent; cout << "The total meal cost is " << totalCost << " dollars.";
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
And this is the Solution in c++