in a class of 25 students in an examination in maths 3 students scored 95 marks each , 5 get zero each and the average of the rest was 45 . what is the average of the whole class ?
n0 = 25.0
n1 = 3.0
n2 = 95.0
n3 = 5.0
n4 = 45.0
t0 = n1 + n3
t1 = n1 * n2
t2 = n0 - t0
t3 = n4 * t2
t4 = t3 + t1
answer = t4 / n0
print(answer)