#define TAX1 0.15 #define TAX2 0.25 int main(int argc, char const *argv[]) { int salary, tax; if (salary > 300) { tax = 300 * TAX1 + (salary - 300) * TAX2; } else { tax = salary * TAX1; } return 0; }
[此贴子已经被作者于2016-7-15 12:12编辑过]