예제 #1
0
int main(int argc, char* argv[])
{
	printf("%f\n", single_tax(10000));
	printf("%f\n", single_tax(20000));
	printf("%f\n", single_tax(110000));
	printf("%f\n", single_tax(210000));
	printf("%f\n", single_tax(310000));
	return 1;
}
예제 #2
0
int main()
{
	double income;
	scanf( "%lf", & income );
	printf( "%lf", single_tax( income ) );
	
	return 0;
}
예제 #3
0
int main()
{
    float test = 0;
    while( test >= 0.0 ){
        printf("Income:");
        scanf("%f", &test);
        printf("income = %.2f, tax = %.2f\n",test, single_tax( test ));

    }
    return EXIT_SUCCESS;
}
예제 #4
0
void main(){
    float single_tax(float income);
    printf("%.2f\n",single_tax(23350));
}