Eligibility Criteria - 4
Given a student has scored
M marks in Maths, P marks in Physics and C marks in Chemistry. Write a program to check if a student is eligible for admission in a professional course. If any one of the below conditions is satisfied then the student is eligible.1) M >= 60, P >= 50, C >= 45 and M + P + C >= 180.
2) Total in M and P >= 120 or Total in C and P >= 110.
The first line is an integer
The output should be a single line containing
Given
M = 72, P = 65, C = 51, the scores of this student satisfies the first condition
M >= 60, (72 >= 60)
P >= 50 (65 >= 50)
C >= 45 (51 >= 45)
M + P + C >= 180 (72 + 65 + 51 >= 180)
So, the student is eligible.
M = int(input())
P = int(input())
C = int(input())
print((M >= 60 and P >= 50 and C >= 45 and M + P + C >= 180) or (M + P >= 120 or C + P >= 110))
Comments
Leave a comment