/* Program to compute Pi using the Leibniz formula */ #include #include #include "mytime.h" double Leibniz(int n) { double sum; int k; sum = 0.0; for (k=0; k