Recent content by KevinMulito

  1. K

    Reusable formula for decrementing denominator

    I am currently working on computer program that has to find the sum of during looping: 1 + 1/2 + 1/3 + 1/4 + etc. So the loop looks something like this: sum = 1; counter = 2; while(...){ sum = sum + (1/counter); counter = counter +1; } My general question however is purely...
Back
Top