Question: Write a program that will ask the user to enter 3 grades and print Passed if the student passed at least 2 of the 3

Write a program that will ask the user to enter 3 grades and print Passed if the student passed at least 2 of the 3 exams (grade above 60) and failed if not.
a) Try writing the program using logical operator.
Try writing the program again using nested if without the use of logical operator.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!