Member Avatar for DynamicMember

i need a program for this function
s=1+1/3+1/5+... e=0.1
i dont know the e is...but in translation it is accuracy...
Show me a way...

Can you make a loop that will count 1, 3, 5, etc.? Use that. I'm not sure what the e means either. Do you have an actual value for s? Perhaps you are supposed to stop adding terms when you are within 0.1 of the value of s.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.