+ 1
Paint Cost - Code Coach
Hello, May you please tell me what’s wrong with this code. I’m getting only 3 out of 5 test cases right. #include <iostream> #include <math.h> using namespace std; int main() { double paints, cost, temp, tcost; cin>>paints; cost = paints*5; temp = (cost+40)*0.1; tcost = cost + 40 + temp; cout<<round(tcost); return 0; }
2 odpowiedzi
+ 3
Maybe this post helps you: https://www.sololearn.com/Discuss/2108025/?ref=app
+ 1
Thank you again Denise!
really appreciate the help!! 🙏🏻