Did you move the tests outside of the loop so that they are done AFTER the sum has been computed?
Try debugging the code by adding some print statements inside of the loop that print out the...
Type: Posts; User: Norm
Did you move the tests outside of the loop so that they are done AFTER the sum has been computed?
Try debugging the code by adding some print statements inside of the loop that print out the...
Another term that needs definition.
Should the sum be computed BEFORE the test is done? In other words, do the test outside of the loop that does the summing.
Can you post definitions for the terms:
perfect,
deficient
abundant.
They need to be defined before any code can be written to solve for them
Can you define these terms for a number?
perfect,
deficient
abundant.
Are those 3 terms mutually exclusive: IE a number can only be one of them and not more than one?
Please explain. What does the code do now?
What are the tests for each of the qualities the number should have:
positive non-zero integer
perfect,
deficient
abundant.
Please edit your...