teslariu

mod2

Feb 9th, 2022
689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Script que calcula área, perímetro y diagonal de un cuadrado
  5. import cuadrado
  6.  
  7. lado = int(input("Ingrese el lado del cuadrado: "))
  8. print(f"Area: {cuadrado.area(lado)}")
  9. print(f"Perímetro: {cuadrado.perimetro(lado)}")
  10. print(f"Diagonal: {cuadrado.diagonal(lado)}")
Advertisement
Add Comment
Please, Sign In to add comment