Calculating conditional Taxes
#include
<stdio.h>
main()
{
float
taxable,taxes;
clrscr();
printf(“enter the income:”);
scanf(“%f”,&taxable);
if(taxable <= 20000.00)
taxes =
0.02 * taxable;
else
taxes =
0.025 * (taxable – 20000.00)+400.00;
printf(“\n\nthe taxes are %0.2f”,taxes);
getch();
}
0 comments:
Post a Comment