Advertisement
Toma252

4.1 square

Oct 16th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #This program calculates circumference and area of a square#
  2. ############################################################
  3.  
  4. # The base of the square
  5. a = float(input("Enter base of a square: "))
  6.  
  7. # Square circumference and area
  8. circumference = 4 * a
  9. area = a * a
  10.  
  11. result = (circumference, area)
  12.  
  13. # Print the result
  14. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement