Computer Science, asked by junaidhkhan, 10 months ago

write a java program to pick the largest 3 numbers using ternary operator

Answers

Answered by aloukikaKanungo
1

hope it helps you

thank you for sharing your doubt

Attachments:
Answered by wd355746
0

Answer:

public class largest ternary

int a,b,c,d

scanner s= new scanner (system)

a=s. nextInt ()

b=s. nextInt ()

c=s. nextInt ()

d=c>(a>b?a:b)?c:(a>b)?a:b;

Similar questions