#include <stdio.h>
float single_tax( float income );
void main()
{
float income,profice;
printf("printf insert the income :");
scanf("%f",&income);
profice = single_tax( income );
printf("the profice is %.2f/n",profice);
}
float single_tax( float income )
{
float profice,n;
if ( income > 256500 )
profice = 81710.50+(income-256500)*0.396;
else if ( income>117950 )
profice = 31832.50+(income-117950)*0.36;
else if ( income > 56550 )
profice = 12798.5+(income-56550)*0.31;
else if ( income > 23350 )
profice = 3502.5+(income-23350)*0.28;
else
profice = income*0.15;
return(profice);
}