Advertisement
rickzman

Untitled

Dec 1st, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #
  2. print("Hi, my am marvin, your personal bot.")
  3. users_name = input("What is your name? ")
  4. print("Welcome "+ users_name)
  5. print("Let's add some numbers")
  6. input1 = float(input("Number 1> "))
  7. input2 = float(input("Number 2> "))
  8. input3 = float(input("Number 3> "))
  9. result = input1 + input2 +input3
  10. print(input1, "+", input2, "+", input3, "=", result)
  11. print("The area of a square of number 1 and 2 ", (input1* input2))
  12.  
  13. result = input1 - input2
  14. print(input1 , "-", input2, "=", result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement