Rewrite the following program segment using if else . String grade=(marks>=90)? "A" :(marks>=80)? "B" : "C" *
Answers
Answered by
63
if (marks >= 90)
grade = "A";
else if (marks >= 80)
grade = "B";
else
grade = "C";
hope it helps you
Similar questions