1
5) Make a program that receives the basic salary of an employee, calculate and show your salary to receive, knowing that the employee has bonus of R $ 50 and pays tax 10%
#include <stdio.h>
int main()
{
float sal,imposto,s_final;
printf(" CALCULO DE SALARIO \n \n");
printf("Digite seu salario: ");
scanf("%f",&sal);
imposto= sal/100 * 0.1;
s_final = sal-imposto+50;
printf("Salario a receber: %f reais \n",&s_final);
printf("Valor dos impostos: %f reais",&sal);
return 0;
}
My C’s pretty rusty but I think the last two
printf()
no need to use&
. P.S.: If the only help you want is to get the variables printed correctly, edit the question and make this clarification, otherwise the way it is can be considered not clear enough ("someone help me with this").– Piovezan