Rewrite the following conditional expressions using if-else statements:
a. score = x > 10 ? 3 * scale : 4 * scale;b. tax = income > 10000 ? income * 0.2 : income * 0.17 + 1000 ;c. cout << (number % 3 == 0 ? i : j) << end⌉;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.