Hints for Exercise ComputePI (Loop & Condition)

Compiled By Unknown - No Comments
Exercise ComputePI (Loop & Condition):
double sum = 0;
int maxDenom = 10000000;
for (int denom = 1; ..... ; denom = denom + 2) {
   if (denom % 4 == 1) {
      sum += ......;
   } else if (denom % 4 == 3) {
      sum -= ......;
   } else {
      System.out.println("The computer has gone crazy?!");
   }
}

Tags:

No Comment to " Hints for Exercise ComputePI (Loop & Condition) "