Read of three subject then calculate total mark average and percentage

User Icon for oobleck oobleck answered
2 years ago

sum=0

for i=1..3
read mark
sum += mark
next i
avg = mark/3

percentage of what?