0
my output here needs to be 55 but it is still printing 56, and I don't know why. someone knows the reason?
the problem is to input the amount of colors u buy, charge 5$ each and added to 40$ plus 10% tax, and I need to output the rounded up amount https://code.sololearn.com/c2E2Mmh8fAnb/?ref=app
1 Answer
+ 1
Ledexmar
use 'round' instead of 'ceil'
cout << (int) round(priceColors);