Computer Science, asked by susmithaammumup104xr, 1 year ago

Give the out put
A)
Val=500;
Int value, sum, n=550;
Sum= n+val>1750?400:200;
System. Out. Println(sum)
B)
Val=500

Answers

Answered by goswamikushal3p3zr4d
21
Hi,
a)val=500
Execution:
sum=(500+550)>1750?400:200
sum=1050>1750?400:200;
Output:
200
b)val=1500
Execution:
sum=(1500+550)>1750?400:200
sum=2050>1750?400:200;
Output:
400

#hope it helps.

please Mark as brainleist

goswamikushal3p3zr4d: please mark as brainleist
susmithaammumup104xr: No brainleist option sorry
Answered by jaimangaldorai
9

Answer:

hope it will help you.......

Attachments:
Similar questions