beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Number Loop

Geoffrey Challen // 2021.8.0

Let's write a simple loop. Assuming an Int variable named count has been declared and initialized to a value larger than zero, write a loop that prints the numbers between 0 and count - 1, inclusive, one number each line. So if count is 4, you should print:

You can use any kind of loop you want! But do not modify count.