Moved out of section where posters are trying to fix their code.
Type: Posts; User: Norm
Moved out of section where posters are trying to fix their code.
Ok, Now how are you going to debug the code to see why the values are incorrect?
I use print statements to show the values of variables as they are used and changed.
Look at the code to see what...
OK, thanks for that. Can you explain what is wrong with that output?
Add some comments showing what the expected output is.
Please explain.
Post the program's output that shows what you are asking about.
One big problem is the end of the source code is missing.
Please edit your post and wrap your code with code...