Advertisement
Roddyn

area_rectangle

Dec 8th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. print("Hi, I am Marvin, your personal bot.")
  2. user_name = input ("What is your name? ")
  3. print("Welcome " + user_name )
  4.  
  5. print("Find the area of a rectangle")
  6. input1 = input("What is the length of the first side? ")
  7. input2 = input("What is the length of the second side? ")
  8. side1 = int(input1)
  9. side2 = int(input2)
  10. result = side1 * side2
  11. output = str(result)
  12. print(input1 + " * " + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement