A program to compute the sum of a given series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n. For this,…
The sum of a series consisting of n terms beginning with "1," is equivalent to the sum of n natural numbers…