-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathURI_1048.c
More file actions
17 lines (17 loc) · 720 Bytes
/
URI_1048.c
File metadata and controls
17 lines (17 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<stdio.h>
int main()
{
float input;
scanf("%f", &input);
if (input <= 400.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 15 %%\n", input * 1.15, input * 0.15);
else if (input <= 800.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 12 %%\n", input * 1.12, input * 0.12);
else if (input <= 1200.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 10 %%\n", input * 1.10, input * 0.10);
else if (input <= 2000.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 7 %%\n", input * 1.07, input * 0.07);
else
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 4 %%\n", input * 1.04, input * 0.04);
return 0;
}