Hey razera.
Hint: You should check out Archimedes proof of pi.
dependence diameter of aquare to diameter of circle inside the square is 4 / pierw(2) * pi, if we will increase the numbers of sides inside the figure inside the circle more and more , dependence will be going to pi (3,14)