Computer Science, asked by maria8462352, 1 year ago

what will be the value of int i=(m+n<=25)?300:30 if the valur of m=5 and n=20....with steps

Answers

Answered by nitish8089
0

ur \: answer...
m=5, n=20;

therefore m+n=25

so i=(m+n<=25)?300:30

i=(25<=25)?300:30

i=(true)?300:30

ternary operator work..

bool(true/false)?true:false

so our expression evaluated true so..

i=300
Similar questions