You are viewing a single comment's thread. Return to all comments →
By using some simple math, single line is enough to solve all the test cases
cout<<"The total meal cost is "<<round(meal*(1+0.01*(tip+tax)))<<" 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 →
By using some simple math, single line is enough to solve all the test cases