forked from sarkerrabi/URI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1048.c
55 lines (47 loc) · 1.31 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include<stdio.h>
int main(){
float s,p,n,r;
int e;
scanf("%f",&s);
if(0<s && s<=400){
n=s*(15/100.0);
r=s+n;
e=15;
printf("Novo salario: %.2f\n",r);
printf("Reajuste ganho: %.2f\n",n);
printf("Em percentual: %d %%\n",e);
}
else if(400<s && s<=800){
n=s*(12/100.0);
r=s+n;
e=12;
printf("Novo salario: %.2f\n",r);
printf("Reajuste ganho: %.2f\n",n);
printf("Em percentual: %d %%\n",e);
}
else if(800<s && s<=1200){
n=s*(10/100.0);
r=s+n;
e=10;
printf("Novo salario: %.2f\n",r);
printf("Reajuste ganho: %.2f\n",n);
printf("Em percentual: %d %%\n",e);
}
else if(1200<s && s<=2000){
n=s*(7/100.0);
r=s+n;
e=7;
printf("Novo salario: %.2f\n",r);
printf("Reajuste ganho: %.2f\n",n);
printf("Em percentual: %d %%\n",e);
}
else if(s>2000){
n=s*(4/100.0);
r=s+n;
e=4;
printf("Novo salario: %.2f\n",r);
printf("Reajuste ganho: %.2f\n",n);
printf("Em percentual: %d %%\n",e);
}
return 0;
}