Difference between revisions of "CSC231 Homework 6 2015"
Line 94: | Line 94: | ||
* What is the last number displayed by the loop? Why? Is it a valid power of 2? | * What is the last number displayed by the loop? Why? Is it a valid power of 2? | ||
<br /> | <br /> | ||
− | * | + | * Assume now that we are interested in printing powers of 3. Is the loop infinite? Why or why not? If not infinite, what is the last number printed by the program? |
<br /> | <br /> | ||
<br /> | <br /> |