Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # > < >= <= == != not
- # or and
- #a = int(input("Enter Number:\n"))
- #if a > 0:
- #print("Positive")
- #print("========")
- #elif a == 0:
- #print("Zero")
- #else:
- #print("Negative")
- Width = input('Enter Width: ')
- Height = input('Enter Height: ')
- if str.isdecimal(Width) and str.isdecimal(Height):
- Width = int(Width)
- Height = int(Height)
- else:
- print("Incorrect input")
- exit()
- Total = Width * Height
- print('Area = ', Total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement