Guest User

Untitled

a guest
Oct 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if option=='C':
  2. radius = float(raw_input("Please enter your radius"))
  3. area = 3.14159 * radius**2
  4. print "The area is for a circle with radius of %s is %s." % (radius,area)
  5. elif option =='T':
  6. base = float(raw_input("Enter the base"))
  7. height = float(raw_input("Enter the height"))
  8. area = 1/2* base * height
  9. print "The area of the triangle with base of %s is %s" % (base, area)
  10. else:
  11. print "Wrong thing"
Add Comment
Please, Sign In to add comment