Eating in Circles, wasn't to complex coding but what you get stuck with is making sure you have the right mathematics. This whole program was mainly maths.
Import the math and ask the input question then the rest was multiplication division, squaring and rounding.
The maths -
c = (100 * day)
b = (c / math.pi)
a = (b * 0.5)
d = (math.sqrt(b))
e = (round(d))
The program was working out how many meters of rope you would need for Phar Lap for how many days you were going to leave him for.
No comments:
Post a Comment