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