1. Press the green flag (turbo mode recommended) 2. The code starts calculating pi 3. Watch to see how close it gets to pi!
This project uses the Monte Carlo method to calculate Pi. A dot moves to a random position on the square. If it touches the circle, the counter updates. It calculates Pi by dividing the number of times it touches the circle by the total amount of tries, and then multiplying that by four. #Pi #PiCalculator #Math #MonteCarlo