Why does this fail two of the tests in paint cost code coach? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why does this fail two of the tests in paint cost code coach?

#include <iostream> using namespace std; int main() { int paint,costnotax,tax,withtax; cin >> paint; costnotax = paint * 5 + 40; tax = costnotax * .10; withtax = costnotax + tax; cout << withtax; return 0; }

27th Jan 2020, 5:27 PM
Christian0972
2 Answers
+ 2
Mihai Apostol Ok thanks
27th Jan 2020, 5:32 PM
Christian0972