Difference between revisions of "CSC231 Homework 6 2015"

From dftwiki3
Jump to: navigation, search
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, and how many terms does it printWhat is the last number displayed?  Is it a valid power of 2?
+
* How many times does it go through?  Why?  
 
<br />
 
<br />
* Same two questions, but assume this time that we are interested in printing powers of 3.
+
* 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 />

Revision as of 10:52, 4 November 2015

--D. Thiebaut (talk) 10:46, 4 November 2015 (EST)


Page under construction!

UnderConstruction.jpg



...