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
English,
4 months ago
Math,
4 months ago
Social Sciences,
4 months ago
Physics,
9 months ago
World Languages,
9 months ago
Science,
1 year ago
Math,
1 year ago