+ 1
Why am I failing (Paint costs)
#include <iostream> #include <cmath> using namespace std; int main() { int colors; cin >> colors; double cost = 40 + (5*colors); cost += cost/10; cout << ceil(cost); return 0; } 5th test won't work
1 Resposta
+ 6
cout << (int) round(cost);