CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

When do I stop?

In this case, we want to process exactly ten students. We stop after processing student number 10.

if the variable "which" represents the number of the current student:

we repeat while which<=10

or

we stop when which>10