Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- number = float(input())
- if number >= 0:
- print(f"Result: {number * 2:.2f}")
- else:
- print("Negative number!")
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement