Hey guys, i were writing a code to calculate the digits of pi using the leibniz formula; the code is shown below:
program picalc
implicit none
real :: pi,g
integer :: i,l
pi=0
print *, "Tell me the precision you want"
read(*,*) l
do i=0,l
g =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.