Computer Science, asked by mondalmary4, 1 month ago

10.
Find the output of the following program when
W nal = 700 cii val=1600
int val, sum, na
n= 550 ,
Sum=nt val >.2750 ?
100: 300
System.out.println (sum);
Signature​

Answers

Answered by thangliankhupelvis
1

Explanation:

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

it's the same process as this

Similar questions