write a program to display sum of the following series by scanner class 1/√2+2/√3+3/√4+4/√5+5/√6+6/√7+7/√8+8/√9
IT'S ARGENT
Answers
Answered by
5
Answer:
Program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + … + n/a^n)
Given two integers
a and
n. The task is to find the sum of the series 1/a + 2/a2 + 3/a3 + … + n/an.
Examples:
Input: a = 3, n = 3
Output: 0.6666667
The series is 1/3 + 1/9 + 1/27 which is
equal to 0.6666667
Input: a = 5, n = 4
Output: 0.31039998
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Hindi,
4 months ago
History,
4 months ago
Social Sciences,
10 months ago
Math,
10 months ago