mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update nth_ugly_number.py
minor bugs fixed
This commit is contained in:
parent
0edf71117d
commit
4765df7272
@ -82,7 +82,7 @@ if __name__ == "__main__":
|
|||||||
print("\n********* END ************")
|
print("\n********* END ************")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
ugly_number = nth_Ugly_Number(n)
|
ugly_number = nth_ugly_number(n)
|
||||||
print(f"The {n}th Ugly Number is: {ugly_number}")
|
print(f"The {n}th Ugly Number is: {ugly_number}")
|
||||||
print("Try another index to find a Ugly Number: ", end="")
|
print("Try another index to find a Ugly Number: ", end="")
|
||||||
except (NameError, ValueError):
|
except (NameError, ValueError):
|
||||||
|
Loading…
Reference in New Issue
Block a user