Menu

[solved] – Question 82491

Sum Series
m(i) = 1/i + 2/i-1 + 3/i-2… t-1/2 + i/1
define a function that returns m(i) for a given i. The function header looks like:double m(int i) Write a test program that prompts the user to enter a positive integer and displays a table that prints values m(i) from 1 to i, as shown below. In the second column, format the outputs with 4 digits after decimal point.Note, do not accept an input integer which is less than or equal to 0.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *