-4
You guys, good night. I am learning C in college and we have been asked an exercise to read the salary of an employee.(until I ask for forgiveness because close to the most experienced, my code must be garbage, but tamo ai né...) (The owner of this company determined a wage increase of 7,5% to all its employees. In addition, granted an allowance of R $ 150,00 for those who receive until and, including R $ 1750,00. Given the value of the net salary of an employee, inform the employee’s final salary.) I got mount the code in devC++ BUT it’s not reading IF and ELSE. Someone can help me ?
#include <stdio.h>
#include <stdlib.h>
int main() 
{
    int ra;
    char nome[50], empresa[40];
    float sal_hoje, sal_total, sal_reajuste;
    printf("Ola, seja bem vindo a Boxbacon \n");
    printf("Digite o seu nome completo : \n");
    scanf("%s",&nome);
    printf("Digite o seu RA : \n " );
    scanf("%d", &ra);
    printf("Digite o seu salario : \n ");
    scanf("%f", &sal_hoje);
        if(sal_hoje <= 1750)
            {
                sal_reajuste=sal_hoje * (0,075);
                sal_hoje= sal_hoje + 150 + sal_reajuste;
                sal_total=sal_hoje;
                printf("tera um salario total de : , "sal_total);
            }
        else 
            {
                sal_reajuste=sal_hoje * (0,075);
                sal_total=sal_reajuste + sal_hoje;
                printf("tera um salario total de : " sal_total);
            }
    
    return(0);
}
Like, it doesn’t return the corrected salary in either case and I’d like to understand what’s wrong.

Hmmm, there’s that too. I fixed it here, but testing it again for in the same place. It doesn’t read the total wage
– Mateus Malvezzi
In fact there was one more error, I fixed and sent the complete code
– MarioSantos