Question: series = 1 + 1/3 + 1/5 + 1/7 + 1/9 .... 1/n a sample run of the program : n=0 n=-5 n=10 series =

series = 1 + 1/3 + 1/5 + 1/7 + 1/9 .... 1/n

a sample run of the program :

n=0

n=-5

n=10

series = 1 + 1/3 + 1/5 + 1/7 + 1/9

example : please enter a positive number > 0 :

0

invalid input !

please enter a positive number > 0 :

-5

invalid input !

please enter a positive number > 0 :

10

sum = 1.7873

required :

N=3 series = 1 + 1/3 + 1/5

please enter a positive number > 0 :

5 sum = 1.53333

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!