Computer Science, asked by umraoseemachikku, 7 months ago


Write a program to define a method void larger( int m, int n ) and print the greatest integer from the parameters from x and y, using the ternary operator.​

Answers

Answered by mishraarchana387
0

Answer:

Program to Find the Largest Number using Ternary Operator

The task is to write a program to find the largest number using ternary operator among:

Two Numbers

Three Numbers

Four Numbers

Examples:

Input : 10, 20 Output : Largest number between two numbers (10, 20) is: 20 Input : 25 75 55 15 Output : Largest number among four numbers (25, 75

Similar questions