repl.it
@axel9967/

Quick maths (Well, not really

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
while True:
    print("To calculate the area and perimeter of a rectangle. ")
    b = float(input("Enter the base of the rectangle. "))
    h = float(input("Enter the height of the rectangle. "))
    a = (b * h)
    p = (2 * h + 2 * b)
    print("The area of the rectangle is ", a,
          " and the perimeter of the rectangle is ", p)

input()
Fetching token
?