asked 180k views
5 votes
3 Convert the following conditional if statements to use the conditional ternary operator (?): if (grade==0){ message="Oops, student needs to rewrite"; } else if (grade>=49){ message="Fail"; } else if (grade>=50 && grade<=74){ message="Pass"; } else{ message="Distiction"; }

asked
User Parish
by
8.4k points

1 Answer

6 votes

Answer:

Step-by-step explanation:

what

answered
User Richard Benson
by
8.1k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.