Visual Studio Code – Calculating pi in c
I'm trying to code a program that approximates pi using a certain equation. However, when I go run the code it outputs 4.8731472566 instead of 3.1415924576 and I was wondering if there were any mistakes in my code. Here's what…