Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Marvin, your personal bot.")
- user_name = input ("What is your name? ")
- print("Welcome " + user_name )
- print("Find the area of a rectangle")
- input1 = input("What is the length of the first side? ")
- input2 = input("What is the length of the second side? ")
- side1 = int(input1)
- side2 = int(input2)
- result = side1 * side2
- output = str(result)
- print(input1 + " * " + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement