How To Find Average Age
#TO FIND AVERAGE AGE
print('AVERAGE AGE ')
avg=0
n=int(input('Enter Number Of Persons :-'))
for i in range(1,n+1):
age=int(input('Enter Age Of Person '+str(i)+' :- '))
avg=avg+age
print('The Average Age =',avg/n,'years')
Made By:-
Nilay Saraf
Comments
Post a Comment