-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1051.cpp
26 lines (22 loc) · 797 Bytes
/
1051.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/****************************************************************/
/* Author : Muzakkir Hossain Minhaz */
/* Github : github.com/MuzakkirHossainMinhaz */
/* Linkedin : linkedin.com/in/muzakkir-hossain-minhaz */
/****************************************************************/
#include <bits/stdc++.h>
using namespace std;
int main()
{
double price;
cin >> price;
cout << fixed << setprecision(2);
if(price<=2000.00)
cout << "Isento" << endl;
else if(price<=3000.00)
cout << "R$ " << ((price-2000)/100.0)*8 << endl;
else if(price<=4500.00)
cout << "R$ " << 80 + ((price-3000)/100.0)*18 << endl;
else
cout << "R$ " << 80 + 270 + ((price-4500)/100)*28 << endl;
return 0;
}