Computer Science, asked by yangchanangmo95, 6 months ago

write a program to find the grade of a student based on a given percentage
85-100 grade A+
70-84grade A
55-69gradeB
40-54gradeC

Answers

Answered by aryanbhosale948
0

Answer:

#python

result = ''

m = int(input("enter marks"))

if m < 54 and m > 40:

result = "C"

elif m < 69 and m> 55:

result= "B"

elif m < 84 and m > 70:

result="A"

elif m < 100 and m > 85:

result = "A+"

else:

print("error wrong numbers")

print(result)

Similar questions