-
Notifications
You must be signed in to change notification settings - Fork 38
/
1048.cpp
22 lines (18 loc) · 907 Bytes
/
1048.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <stdio.h>
using namespace std;
int main(){
float sal;
cin >> sal;
if(sal >= 0.0 && sal <= 400.00)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: %d %c\n", sal+(0.15*sal),0.15*sal, 15,'%');
if(sal >= 400.01 && sal <= 800.00)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: %d %c\n", sal+(0.12*sal),0.12*sal, 12,'%');
if(sal >= 800.01 && sal <= 1200.00)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: %d %c\n", sal+(0.10*sal),0.10*sal, 10,'%');
if(sal >= 1200.01 && sal <= 2000.00)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: %d %c\n", sal+(0.07*sal),0.07*sal, 7,'%');
if(sal > 2000.00)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: %d %c\n", sal+(0.04*sal),0.04*sal, 4,'%');
return 0;
}