Task 3: Output greatest value
Given three numbers, write a program that outputs the number with the greatest value among the three. Use the conditional ?: operator that we have studied so far. (HINT: You will need to use two sets of ?: to solve this). For example, given the numbers 10, 23, and 5, your program should output:
OUTPUT
number1 = 10
number2 = 23
number3 = 5
The highest number is 23
Check your program by clicking the buttons below.
COMPILE
RUN