Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This program calculates circumference and area of a square#
- ############################################################
- # The base of the square
- a = float(input("Enter base of a square: "))
- # The circumference of the square
- circumference = a * 4
- # The area of the square
- area = a * a
- # Print the result
- print("The cirumference and area of the square are %f and %f, respectively." % (circumference, area))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement