Advertisement
biggles2206

Area work out Python

Apr 23rd, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # Take the width of the shape and store it as a variable
  2. shapeWidth = int(input("What is the Width of the shape (In CM)"))
  3.  
  4. # Take the Length of the Shape and store it as a variable
  5. shapeLength = int(input("What is the Length of the shape (In CM"))
  6.  
  7. # Work out the area and store it in a variable (* means multiply)
  8. area = int(shapeWidth*shapeLength)
  9.  
  10. # Print the area
  11. print(area)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement