[Solved] c++ math assignment [closed]


add 1/3 to itself a large number of times

This means that you should add ⅓ a bunch of times: ⅓ + ⅓ + ⅓ + ⅓ + …

Then you’re supposed to compare the result of that calculation with the result of multiplying ⅓ by the number of times you added it. So for example if you add it together four times (⅓ + ⅓ + ⅓ + ⅓) then you compare that result with the result of ⅓ × 4.

Mathematically the results should be the same, but the purpose of this assignment is to teach you something about how the computer performs the calculation.

0

solved c++ math assignment [closed]