Question: Write the equivalent of the following statement using ternary operator. int Total= 0; If QuizGrade < MidtermGrade Total=MidtermGrade; Else Total=QuizGrade;
Write the equivalent of the following statement using ternary operator. int Total= 0; If QuizGrade < MidtermGrade Total=MidtermGrade; Else Total=QuizGrade;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
