Computer Science, asked by bca111nitika, 2 months ago

write a program in C to find the division of students According to the percentage of he or she arrived​

Answers

Answered by freedarajesh2003
0

Answer:

Explanation:

x = int(input("Enter max marks of each subject: "))

def grade (a, b, c, d, e):

x = a+b+c+d+e

y = x*5

if x/y*100 >= 60:

print('A grade')

elif x/y*100 <= 45 and x/y*100<60:

print("B grade")

elif x/y*100 <= 33 and x/y*100<45:

print("B grade")

else:

print("FAIL")

m = int(input("Enter marks in Hindi: "))

n = int(input("Enter marks in English: "))

o = int(input("Enter marks in Science: "))

p = int(input("Enter marks in Maths: "))

q = int(input("Enter marks in Computer: "))

#Call the function

grade(m, n, o, p, q)

This code works only in Python

Hope it works

Similar questions