Write a program to find and display the value of given expressions:-
(a+5)/6-(5a+7)/3,taking the value of a=10.
Answers
Answered by
1
Please refer the attached image
Attachments:
Answered by
1
Explanation:
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