ch=int(input('Enter the classes held on total: '))
ca=int(input('Enter the classes attended on total: '))
cap=(ca/ch)*100
print(cap,'% of class attended')
if(cap<75):
    print('He/She not allowed to attend exam')
else:
    print('He/She allowed to attend exam')

87376332c8bf09f5edb14fee4fd4bfb50a2b392a
<mask token>

<mask token>
print(cap, '% of class attended')
if cap < 75:
    print('He/She not allowed to attend exam')
else:
    print('He/She allowed to attend exam')

ch = int(input('Enter the classes held on total: '))
ca = int(input('Enter the classes attended on total: '))
cap = ca / ch * 100
print(cap, '% of class attended')
if cap < 75:
    print('He/She not allowed to attend exam')
else:
    print('He/She allowed to attend exam')

ch=int(input('Enter the classes held on total: '))
ca=int(input('Enter the classes attended on total: '))
cap=(ca/ch)*100
print(cap,'% of class attended')
if(cap<75):
    print('He/She not allowed to attend exam')
else:
    print('He/She allowed to attend exam')
