Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- finished = False
- while not finished:
- value = int(input("Enter a value to be cubed: "))
- cube = value ** 3
- print(value, "cubed is", cube)
- choice = input("Cube another number? (y/n): ")
- if choice.lower() == "n":
- finished = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement