b. Rewrite the following program segment using ternary operator instead of if-else
statements.
if (marks >=90)
grade = "A";
elseif (marks >=80)
grade = "B";
else
grade = "C";
Answers
Answered by
2
Explanation:
if (marks >=90)
grade = "A";
elseif (marks >=80)
grade = "B";
else
grade = "C";
Answered by
1
This is the answer. ......
This is the answer. ......plzzz follow
Attachments:
Similar questions