Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Calculon, your personal bot.")
- user = input("What is your name?")
- print("Welcome " + user + " We are going to do some fun maths, let's get started!" )
- 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")
- input1=input("What is the first side length? ")
- input2=input("What is the second side length? ")
- number1=int(input1)
- number2=int(input2)
- result = number1 * number2
- output = str(result)
- print(input1 + " x " + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement