repl.it
Python

No description

fork
loading
Files
  • main.py
main.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
z=str(input("1.Area & Peri=a\n2.Volume & Surface Area=v\n"))

if z=='v': 
  y=str(input("Choose\n1.Cube=cb\n2.Cubiod=b\n3.Cylinder=d\n4.Sphere=sp\n5.Cone=co\n"))
  if y=='cb':
    l=float(input("Enter side Length\n"))
    a=l*l*l
    i=6*l*l
    b = 0
    h = 0
    x = 0
    g = 0
    r = 0
  elif y=='b':
    l=float(input("Enter Length\n"))
    b=float(input("Enter Breadth\n"))
    h=float(input("Enter Height\n"))
    a=l*b*h
    i=2*(l*b+b*h+l*h)
    x = 0
    g = 0
    r = 0
  elif y=='d':
    l=float(input("Enter Radius\n"))
    h=float(input("Enter Height\n"))
    a=3.1415*l*l*h
    i=(2*3.1415*l*h)+(2*3.1415*l*l)
    b = 0
    x = 0
    g = 0
    r = 0
  elif y=='sp':
    h=float(input("Enter Radius\n"))
    a=4*3.1415*h*h*h/3
    i=4*3.1415*h*h
    l = 0
    b = 0
    x = 0
    g = 0
    r = 0
  elif y=='co':
    l=float(input("Radius(Surface Area not Avaiable)\n"))
    h=float(input("Height\n"))
    a=3.1415*l*l*h/3
    b = 0
    i = 0
    x = 0
    g = 0
    r = 0 
  print ("Volume≈",a)
  print ("Surface Area≈",i)
?