-
Notifications
You must be signed in to change notification settings - Fork 2
/
1048.c
40 lines (37 loc) · 1.29 KB
/
1048.c
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include<stdio.h>
int main (){
double salario, reajuste, salariototal;
scanf("%lf", &salario);
if (salario > 0 && salario <= 400){
reajuste = salario * 0.15;
salariototal = salario + reajuste;
printf("Novo salario: %.2lf\n", salariototal);
printf("Reajuste ganho: %.2lf\n", reajuste);
printf("Em percentual: 15 %%\n");
}else if (salario >=400.01 && salario <=800){
reajuste = salario * 0.12;
salariototal = salario + reajuste;
printf("Novo salario: %.2lf\n", salariototal);
printf("Reajuste ganho: %.2lf\n", reajuste);
printf("Em percentual: 12 %%\n");
}else if (salario >= 800.01 && salario <= 1200){
reajuste = salario * 0.10;
salariototal = salario + reajuste;
printf("Novo salario: %.2lf\n", salariototal);
printf("Reajuste ganho: %.2lf\n", reajuste);
printf("Em percentual: 10 %%\n");
}else if (salario >= 1200.01 && salario <= 2000){
reajuste = salario * 0.07;
salariototal = salario + reajuste;
printf("Novo salario: %.2lf\n", salariototal);
printf("Reajuste ganho: %.2lf\n", reajuste);
printf("Em percentual: 7 %%\n");
}else if (salario > 2000){
reajuste = salario * 0.04;
salariototal = salario + reajuste;
printf("Novo salario: %.2lf\n", salariototal);
printf("Reajuste ganho: %.2lf\n", reajuste);
printf("Em percentual: 4 %%\n");
}
return 0;
}