int scores[10,4],sum,s,i
real avg
sum=0
for s=1..10
print "Enter the 4 scores for student #",s,": "
read scores[s,i] for i=1..4
for i=1..4 sum += scores[s,i]
next s
avg = sum/40
write a program that will calculate the average of the total marks scored by 10 students, if each student has done 4 exams.
1 answer