Difference between revisions of "CSC231 Homework 6 2015"
Line 90: | Line 90: | ||
* Why is the loop not an infinite loop? | * Why is the loop not an infinite loop? | ||
<br /> | <br /> | ||
− | * How many times does it go through | + | * How many times does it go through? Why? |
<br /> | <br /> | ||
− | * Same | + | * What is the last number displayed by the loop? Why? Is it a valid power of 2? |
+ | <br /> | ||
+ | * Same three questions as above, but assume this time that we are interested in printing powers of 3. | ||
<br /> | <br /> | ||
<br /> | <br /> |