Explanatory Question
Rewrite the following program segment using if-else statements instead of the ternary operator:
String grade = (marks>=90)?"A": (marks>=80)? "B": "C";
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.