Computer Science, asked by Anonymous, 1 year ago

write a program to find largest number using if or else

Answers

Answered by avinashmurmu99311
0

Answer:

class num

{

public static void main(String args[])

{

int a=5, b=6;

int l=0;

l=(a>b)?a:b;

S.o.pln(l);

}

}

this program is written using ternary operator

Similar questions