Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- import time
- Circum = int("1")
- arree = int("2")
- print("Welcome To Circle Tool")
- pie = float(3.14159265358979323)
- circ_or_ar = input("Do you want to figure out the circumference(1) or the area(2) of the circle?")
- if circ_or_ar == Circum:
- Circ_Gen(pie)
- elif circ_or_ar == arree:
- Area_Gen(pie)
- else:
- print("I AM ERROR")
- def Area_Gen(pie)
- Rad = float(input("What is the radius?"))
- Area = pie * (Rad * Rad)
- print(Area)
- return;
- def Circ_Gen(pie):
- Diam = float(input("What is the diameter? "))
- Circumference = Diam * pie
- print(Circumference)
- return;
- time.sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement