Design a class to overload a function series() as follows:
(i) double series(double n) with one double argument and returns the sum of the series.
sum = 1/1 + 1/2 + 1/3 + … 1/n
(ii) double series(double a, double n) with two double arguments and returns the sum of the series.
sum = 1/a2 + 4/a5 + 7/a8 + 10/a11 … to n terms
"Thanku so much " for the thanks
Attachments:
Answers
Answered by
2
Answer:
Hello beautiful i hope you are doing well ❤️
Answered by
1
Answer:
mark me as brainliest please
Similar questions