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?!"); } }
No Comment to " Hints for Exercise ComputePI (Loop & Condition) "