Given x and n, compute the following sum:
Thus, if x = 0.1 and n = 5, then the sum is (up to n = 5 terms)
0.1+2*(0.01)+3*(0.001)+4*(0.0001)+5*(0.00001)
= 0.12345
Avoid using for/while loops.

Solution Stats

96 Solutions

39 Solvers

Last Solution submitted on Mar 05, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...