Computer Science, asked by ayushyadavvvv08, 1 month ago

What will be the output of given statement- a) int v=500,amt,n=700; amt=(n+v)>1800?2100:1100; System.out.print (amt);​

Answers

Answered by zambredd
0

Answer:

Output is 1100.

Explanation:

First we have to check the condition .If n+v is greater than 1800 the answer is 2100 and if it is less than 1800 the answer is 1100.

Similar questions