set the totalStudents to 0
prompt for the number of workshops
enter the number of workshops
loop for number of workshops with index
prompt for the number of students in workshop
enter the number of students
add the number of students to the totalStudents
end loop
display the totalStudents