Computer Science, asked by rehan33, 1 year ago

rewrite the following using ternary operators
if (grade >A1)
result="distinction";
else
result="first division";

Answers

Answered by anush4
0
result distinction else result first division

kritika2727: u r wrong
anush4: how
kritika2727: ternary operator is not like this. it uses shmbols like: and?
anush4: ok
anush4: I am. new here
anush4: can u tell me how can I earn income here
Answered by digi18
2
Here you go:

(grade>A1 ? distinction : first division)
Similar questions