Professional Documents
Culture Documents
Lab 2
Lab 2
So, the value of the variable total on the 7th iteration, before the
addition step, is 21
Answer 3## To adhere to Java name rules, I changed int countstudent to int
countStudents. In order to make sure that it only counts the total
number of students once rather than each individual student, I also put the
countStudents++ line outside the loop.