Why Wrong 15%

Faysal Ahmed asked 1 year ago


int main() { float money; float taxes; scanf("%f",&money); if(money<=2000) printf("Isento\n"); else { money=money-2000; if(money>=1000&&money<2500) { money=money-1000; taxes=1000.00.08; taxes=taxes+(money0.18); } else if(money>=2500) { money=money-1000; taxes=1000.00.08; money=money-1500; taxes=taxes+(1500.00.18); taxes=taxes+(money0.28); } else taxes=money0.08;

    if(taxes>2000) printf("Isento\n");
    else printf("R$ %0.2f\n",taxes);


This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.