write a program to find largest number using if or else
Answers
Answered by
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
Math,
7 months ago
Math,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago