Computer Science, asked by MMbanda, 10 months ago

Rewrite the following using Ternary Operator: [2]
int age=30;
boolean res;
if(age<=20)
res=true;
else
res=false;​

Answers

Answered by khuhrouzairahmed09
2

Answer:

age<=20?res=true:res=false;

Similar questions