daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/python
  2.  
  3.  
  4. print("Hi, I am Marvin, your personal bot.")
  5. print("let calculate the area of square")
  6. measure = input("what is measurement unit cm or inches >")
  7. input1 = input("Length side measurement > ")
  8. input2 = input("Width side measurement > ")
  9. number1 = int(input1)
  10. number2 = int(input2)
  11. result = number1 * number2
  12. output = str(result)
  13. print("the area of the square is "+ input1 + " * " + input2 + " = " + output + " squared " + measure)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top