Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. print("Hi, I am Calculon, your personal bot.")
  2. user = input("What is your name?")
  3. print("Welcome " + user + " We are going to do some fun maths, let's get started!" )
  4. print("We are going to calculate the area of any square or rectangle, you will give me the side lengths and I will tell you the area")
  5. input1=input("What is the first side length? ")
  6. input2=input("What is the second side length? ")
  7. number1=int(input1)
  8. number2=int(input2)
  9. result = number1 * number2
  10. output = str(result)
  11. print(input1 + " x " + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement