Please help!
Hey guys Please help I'm kinda still learning.. I could not solve the third and forth cases of this problem neither with python nor c++ Can anyone tell me what have I done wrong.. Thank you Here is my code in python: canvas = 40.00 color = 5.00 tax = 0.1 def cal(colors): total = colors * color + canvas taxes = total * tax print(int(taxes + total)) colors = int(input()) cal(colors) And in c++: #include <iostream> using namespace std; int calculate(int colors){ float canvas = 40.00; float color = 5.00; float tax = 0.1; int price = colors * color + canvas; int taxes = price * tax; return price + taxes; } int main() { int colors; cin >> colors; int total = calculate(colors); cout << total; return 0; } https://www.sololearn.com/coach/22?ref=app