+ 1
Need help in solving Paint costs
#include <iostream> #include <cmath> using namespace std; int main() { double numcolor,costcolor,tax,totalcost; cin >> numcolor ; costcolor = (5.00 * numcolor)+ 40.00; tax = (0.1) * costcolor; totalcost = ceil(costcolor + tax); cout << totalcost ; return 0; } Can i know what is the problem in this code.
3 Respuestas
+ 1
//try something like this
cout<<int(totalcost);
+ 1
Here you go👇
https://code.sololearn.com/c9ZO623SwjMd/?ref=app