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.
The first line is an integer
The output should be a single line containing
Given
M = 50, P = 35, C = 40
Sample Input1:
50
35
40
Sample Output:True
35
35
100
Sample Output:True
M = int(input())
P = int(input())
C = int(input())
MP = M + P
MC = M + C
PC = P + C
if M >= 35 and P >= 35 and C >= 35 and (MP >= 90 or MC >= 90 or PC >= 90):
print('True')
else:
print('False')
Comments
Leave a comment