Uri 1048 Solution in c || Beecrowd 1048 Salary Increase
#include<stdio.h>
int main()
{
float s;
scanf("%f",&s);
if(s>0 && s<=400.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 15 %%\n",(s+(s*.15)),(s*.15));
else if(s<=800.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 12 %%\n",(s+(s*.12)),(s*.12));
else if(s<=1200.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 10 %%\n",(s+(s*.10)),(s*.10));
else if(s<=2000.0)
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 7 %%\n",(s+(s*.07)),(s*.07));
else
printf("Novo salario: %.2f\nReajuste ganho: %.2f\nEm percentual: 4 %%\n",(s+(s*.04)),(s*.04));
return 0;
}
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.