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; }
int main() { double income; scanf( "%lf", & income ); printf( "%lf", single_tax( income ) ); return 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; }
void main(){ float single_tax(float income); printf("%.2f\n",single_tax(23350)); }