Advertisement
Thyagoroberto

Untitled

Aug 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. void main () {
  3. float inss, ir, fs, sb, sl, td;
  4. printf("informe o salario bruto: R$");
  5. scanf("%f",&sb);
  6. inss= sb*0.08;
  7. ir=sb*0.1;
  8. fs= (sb-(ir+inss))*(0.5/100);
  9. td= inss+ir+fs;
  10. sl= sb-td;
  11. printf("descontos: \n INSS = R$ %.2f \n IR = R$ %.2f \n Filiacao Sindical = R$ %.2f \n Total de Descontos = R$ %.2f \n Salario liquido = R$ %.2f", inss, ir, fs, td, sl);
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement