-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAREAOFSHAPES.py
56 lines (46 loc) · 1.41 KB
/
AREAOFSHAPES.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#Area of a Square
"""lenght=input("Enter the lenght of the square\n")
lenght=int(lenght)
area=lenght*lenght
print(area)"""
#Area of a Triangle
"""base=input("Enter the base of the triangle")
height=input("Enter the height of the triangle")
base=int(base)
height=int(height)
area=(base/2*height)
print(area)"""
"""base=int(input("Enter the base of the triangle"))
height=int(input("Enter the height opf the triangle"))
area=base*height/2
print(area)"""
#Area of a Circle
"""import math
radius=int(input("enter the radius of the circle"))
area=radius*radius*math.pi
area=round(area ,2)
print(area)"""
#AreaCalculator
"""import math
print("Welcome to the Area calculator designed by Omikunle Okiki Joshua")
menu=int(input("Please Select the Shape \n1) Triangle\n2) Square\n3) Circle\n"))
if menu==1:
print("You have selected Triangle")
base=int(input("Enter the base of the triangle\n"))
height=int(input("Enter the height opf the triangle\n"))
area=base*height/2
print(area)
elif menu==2:
print("You have selected Square")
lenght=input("Enter the lenght of the square\n")
lenght=int(lenght)
area=lenght*lenght
print(area)
elif menu==3:
print("You have selected Circle")
radius=int(input("enter the radius of the circle\n"))
area=radius*radius*math.pi
print(area)
else:
print("Invalid Option")
print("Run the program again and select an option from 1 - 3")"""