mark1 = io.read('*n')
mark2 = io.read('*n')
mark3 = io.read('*n')
tot_marks = mark1 + mark2 + mark3
avg_marks = tot_marks/3
print('The total marks are', tot_marks)
print('The average marks are',avg_marks)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: