repl.it
@SushaanPatel/

Math External Calculator

Python

No description

fork
loading
Files
  • main.py
  • Pie chart.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
#Math External Calculator
y = (input("1. Find Diagonals = d\n2. Find Sum of Interior Angles = a \n3. Find Degree and Precent for Pie Chart = p\n"))

if y=='d':
  a = float(input("\nEnter Number of Slides/Verticles\n"))
  i = a*(a-3)/2
  b = 0
  z = 0
  c = 0
  p = 0
if y=='a':
  a = float(input("\nEnter Number of Slides/Verticles\n"))
  z = (180 * a) - 360
  b = 0
  c = 0
  p = 0
  i = 0
if y=='p':
  a=float(input("\nEnter Value\n"))
  b=float(input("\nEnter Total\n"))
  c = a*360/b
  p = a*100/b
  z = 0
  i = 0

print ("\nSum of interior Angles is", z)
print (i, "Diagonals")
print (c, "Degree (Pie Chart)")
print (p, "Precentage (Pie Chart")




?