Write the following statement using the if-else statement.
k = (a + b > 20) ? a + 3 * b : a – b; Using if-else: if (a + b > 20) { k = a + 3 * b; } else { k = a – b; } Related Questions: Differentiate between if and if-else selection structures. Differentiate between else-if … Read more