+ 3

Could you plz help me in paint cost code coaches?All passed except test#5.How can I correct it?

You are getting ready to paint a piece of art. The canvas and brushes that you want to use will cost 40.00. Each color of paint that you buy is an additional 5.00. Determine how much money you will need based on the number of colors that you want to buy if tax at this store is 10%. https://code.sololearn.com/cI1EJjFfhW8R/?ref=app

28th Aug 2021, 2:01 PM
Myo Thuzar
Myo Thuzar - avatar
5 Respuestas
+ 9
Try casting the final result to an integer before printing it: cout << static_cast< int >( ceil( cost ) );
28th Aug 2021, 2:24 PM
Shadow
Shadow - avatar
+ 6
Shadow Got it!! thank you so much for your help 🙏💐
28th Aug 2021, 2:28 PM
Myo Thuzar
Myo Thuzar - avatar
+ 2
Mihir I appreciate your help. But I solved it 18 days ago😁🤗
15th Sep 2021, 3:13 PM
Myo Thuzar
Myo Thuzar - avatar
0
what is ceil
26th Apr 2022, 10:31 AM
sahil somyani
sahil somyani - avatar