If-else encadeados em C?

o que estou errando pessoal?

#include <stdio.h>

#include <stdlib.h>

int main(int argc, char *argv[])

{

float sal;

printf("Digite seu salario: ");

scanf("%f", &sal);

if(sal<=0){

printf("Dados Incorretos.\n");

}else{

if(salario>1000) printf("o imposto a pagar e de %.2f\n", sal*0.10);

else printf("o imposto a pagar e de %.2f\n", sal*0.05);

}

system("PAUSE");

return 0;

}

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 Q2A.ES - All rights reserved.