Пример #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));
}