moranguinho

ex5ed2

Mar 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. float renda_anual, imposto_;
  5.  
  6. printf("Informe a renda anual: R$");
  7. scanf("%f", &renda_anual);
  8.  
  9. if(renda_anual <= 10000){
  10. printf("Isento de imposto");
  11. }
  12. else if( renda_anual > 10000 && renda_anual <= 250000){
  13. imposto_ = renda_anual * 10/100 - 1000;
  14. printf("imposto de R$%.2f", imposto_);
  15. }
  16. else{
  17. imposto_ = 25/100 * renda_anual - 4750;
  18. printf("Imposto de renda de R$%.2f\n", imposto_);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment