Rewrite the code into conditional operator
if(m>300)
Ch=(m/10)*2
else
Ch=(m/20)-2
System.out.println(ch)
Answers
Answered by
2
In conditional operator the code is given to you now
Attachments:
Similar questions