Getting Inputs from USERS then do the Calculations

#This program is prepared intend to know AREA, PERIMETER of the Rectangle
Length = 10
Width=input("Width of Rectangle is :")
Hight=input("Hight of Rectangle is :")
Area= float(Width)*float(Hight)
Perimeter= 2*(float(Width)+float(Hight))
print(Area)
print(Perimeter)
#--------------------------------------
print("Width of Rectangle is :")
print(Width)
print("Hight of Rectangle is :")
print(Hight)
print("The below ae the answers which are calculated by PYTHON")
print("--------------------------------------")

print("Area of Rectangle is :")
print(Area)

#--------------------------------------
print("Area of Area is :")
print(Perimeter)

============================================

#This program is prepared intend to know AREA, PERIMETER of the Circle
Radius=input("Radius of Circle is :")
Radius=float(Radius)
pi=float(3.14)
Area = Radius*Radius*pi
Perimeter = 2*Radius*pi

print("The Area of Circle as you supply the Inputs is:")
print(Area)
print("--------------------")
print("The Perimeter of Circle as you supply the Inputs is:")
print(Perimeter)






Previous Post Next Post

Contact Form