CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include <cmath>
using namespace std;
int main() {
float canvas = 40.00;
float colors_cost = 5.00;
float tax, total, colors;
cin >> colors;
tax = ((canvas + (colors * colors_cost)) * 10)/100;
total = (canvas + (colors * colors_cost) + tax);
cout << round(total);
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run