Computer Science, asked by chelsirajan67, 5 months ago

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 HimanshuMahiya
2

Explanation:

if (marks >=90)

grade = "A";

elseif (marks >=80)

grade = "B";

else

grade = "C";

Answered by anushka200531
1

This is the answer. ......

This is the answer. ......plzzz follow

Attachments:
Similar questions