Find the larger of two numbers given by the user using ternary operator.
Answers
Answered by
6
Explanation:
The expression exp1 will be evaluated always. Execution of exp2 and exp3 depends on the outcome of exp1. If the outcome of exp1 is non zero then exp2 will be evaluated, otherwise, exp3 will be evaluated. Program to find the largest number among two numbers using ternary operator.
here is your answers
Similar questions
Psychology,
1 month ago
Math,
1 month ago
Science,
2 months ago
Math,
9 months ago
Physics,
9 months ago