income tax
#include <stdio.h>
int main() {
float income , tax ;
printf( " enter your income : ");
scanf( "%f", &income) ;
tax = 0 ;
if ( income < 250000){
tax = (tax + ( 0 * income ));
}
if ( income > 250000){
tax = (tax + ( 0.05 * (income - 250000 )));
}
if ( income > 500000){
tax = (tax + ( 0.2 * (income - 500000 )));
}
if ( income < 1000000){
tax = (tax + ( 0.3 * (income - 1000000 )));
}
printf( " the tax paid is %f",tax );
return 0;
}
Comments
Post a Comment