Update
This commit is contained in:
parent
124b9d1e7c
commit
3f374a4713
85 changed files with 2281 additions and 2272 deletions
|
@ -40,7 +40,7 @@ def printDivisorTree(x):
|
|||
if x % i == 0:
|
||||
a = i
|
||||
b = int(x / i)
|
||||
|
||||
|
||||
if a >= b:
|
||||
break
|
||||
|
||||
|
@ -52,15 +52,15 @@ def printDivisorTree(x):
|
|||
printDivisorTree(b)
|
||||
else:
|
||||
print(x,end="")
|
||||
|
||||
|
||||
print(")",end="")
|
||||
|
||||
while True: # main loop, read numbers
|
||||
try:
|
||||
x = int(input("enter a number: "))
|
||||
except ValueError:
|
||||
break
|
||||
break
|
||||
|
||||
printDivisorTree(x)
|
||||
print("")
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue