You must disable your AdBlock software in your browser to use this site.
Disable ad blocking for practiceit.cs.washington.edu, then refresh this page to continue.
It is easy to disable AdBlock for just one site while leaving it enabled for other sites.
Just click the "stop sign" icon in the top-right of your browser, then un-check the "Enabled for this site" checkbox.
Thank you for your understanding and helping us to keep Practice-It free of cost for all students to use.
If you are still seeing this message after disabling your ad blocker, try clearing your browser history and refreshing the page.
Also make sure you don't have any other ad-blocking software running outside of your browser, such as a HOSTS file or proxy.
If you are certain that you are not running AdBlock or any other ad-blocking software, but you are still seeing this message,
please Contact Us.
Write a method called printSquare that takes in two integer parameters, a min and a max, and prints the numbers in the range from min to max inclusive in a square pattern. The square pattern is easier to understand by example than by explanation, so take a look at the sample method calls and their resulting console output in the table below.
Each line of the square consists of a circular sequence of increasing integers between min and max. Each line prints a different permutation of this sequence. The first line begins with min, the second line begins with min + 1, and so on. When the sequence in any line reaches max, it wraps around back to min.
You may assume the caller of the method will pass a min and a max parameter such that min is less than or equal to max.