Computer Science, asked by Manoradh7322005, 1 year ago

val=500
int val,sum,n=550
sum=n+val>1750?400:200;
System.out.print(sum);

Answers

Answered by binodinisamal1988
11

this statement means

if (sum>1750)

System. out. println("400") ;

else

System. out. println("200);

we know sum=n+val

n is equals to 550 and val=500

then sum=550+500=1050

the statement is false that sum>1750

as sum=1050 which is less than 1750

then the statement "200" will be executed.

the output is....200.

HOPE THIS HELPS YOU

PLZ MARK ME BRAINLIEST

Similar questions