#prompt use to enter number
n=int(input("Enter the number of students you want to compute their result "))
totalscore=0
averagescore=0
count=1
while count<=n:
print ("Student ",count)
score = int(input("Enter score "))
totalscore=totalscore+score
count=count+1
averagescore=totalscore/n
print ("Total number of student (s): ",n)
print ("Total score: ", totalscore)
print ("There average score of the students: ", averagescore)
#12 rows by 20 columns multiplication table
#outer loop or rows (1 to 20)
for r in range(1,21):
#inner loop or columns (1 to 13)
for c in range(1,13):
#e.g 2x1=2... 2x12=24
print (r,"x",c,"=",r*c)
No Comment yet!