Source Code
hin=int(input(“Enter hindi marks : “))
eng=int(input(“Enter english marks : “))
mth=int(input(“Enter maths marks : “))
sci=int(input(“Enter science marks : “))
com=int(input(“Enter computer marks : “))
per=(hin+eng+mth+sci+com)/5
print(“Percentage : “, per)
if per>40:
print(“Result : Pass”)
else:
print(“Result : Fail”)
Output
Enter hindi marks : 78
Enter english marks : 98
Enter maths marks : 56
Enter science marks : 85
Enter computer marks : 77
Percentage : 78.8
Result : Pass