Eligibility Criteria - 3
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 based on the following criteria:
M >= 35, P >= 35, C >= 35 and total in any of the two subjects >= 90.
Input
The first line is an integer M, the second line is an integer P and the third line is an integer C.
Output
The output should be a single line containing True if it satisfies the given conditions, False in all other cases.
Explanation
Given M = 50, P = 35, C = 40
So, the output should be True
M = int(input())
P = int(input())
C = int(input())
print((M>=35 and P>=35 and C>=35 and (M+P+C)>=90))
Comments
Leave a comment