Computer Science, asked by choudhuryabhinab82, 9 months ago

int a = 5,b=3;
int c= a>b?a>b?a/b:a*b:a+b; System.out.println(c);

Find the output.​

Answers

Answered by pavitranayak04
1

Answer:

The answer is 15

Explanation:

This is the syntax of conditional operator (? :)

variable x = (expression) ? value if true : value if false

here,

a>b ? a>b ? a/b returns a true value

therfore, it will find the value of a*b i.e 5*3 = 15

Similar questions