Advertisement
Sheyii

Area of square

Jan 18th, 2019
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. print("Hello, I am Sheyii your personal bot.")
  2.  
  3. print("Area of a square")
  4.  
  5. input1 = input("Width >")
  6. input2 = input("Height >")
  7.  
  8. Width = int(input1)
  9. Height = int(input2)
  10.  
  11. result = Width * Height
  12.  
  13. output = str(result)
  14.  
  15. print("The area of the square is " + input1 + "*" + input2 + " = " + output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement