it does not prompt me to "enter a guess" as it should,
Norm Radder wrote:Where is that question asked? Is that code executed?
Try debugging the code by adding some print statements to show where the execution flow goes and what the values of variables are as they are changed and used.
The print out will show you what the compute is doing when it executes your code.
DotComBust class: line 60.
Where does execution go after this line is printed:
setting com.krichard.DotCom@677327b6
Add some print statements to see what happens next.
The program itself doesn't stop
K Richard wrote:Think i found it, just changed the operator (<) less than, in the condition (success && x < comSize) to (>) greater than.
All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:Look carefully at this line. What's wrong?
I also have no idea where the number 200 has been pulled from and what significance it has.
i can also change the ampersand to two of them instead of one but this doesn't really change the code, and as my understanding would have only changes what gets checked should something return false.
All things are lawful, but not all things are profitable.
Maybe it SHOULD, but it doesn't.
This looks like a job for .... legal tender! It says so right in this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|