I am following a programming tutorial that has the following slide:
Area of circle $S_c = \pi\times r^2$
Area of square $S_s = 2r \times 2r = 4r^2$
Therefore $\pi = 4S_c/S_s$
I cannot see how the author has arrived at the calculation for $\pi$ however. Can someone please advise?
The author says that
Therefore$$\frac{4S_c}{S_s}=\frac{4\pi r^2}{4r^2}=\pi.$$