Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- float renda_anual, imposto_;
- printf("Informe a renda anual: R$");
- scanf("%f", &renda_anual);
- if(renda_anual <= 10000){
- printf("Isento de imposto");
- }
- else if( renda_anual > 10000 && renda_anual <= 250000){
- imposto_ = renda_anual * 10/100 - 1000;
- printf("imposto de R$%.2f", imposto_);
- }
- else{
- imposto_ = 25/100 * renda_anual - 4750;
- printf("Imposto de renda de R$%.2f\n", imposto_);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment