Hi
hwo to write total of 10 first setences (C languege)
-1,+2/3,-3/5,+4/7,-5/9,...

Recommended Answers

All 3 Replies

What does this

hwo to write total of 10 first setences (C languege)

have to do with this...

-1,+2/3,-3/5,+4/7,-5/9,...

your not gonna get much help if you can't post in english clearly :-/

sum of 10 first terms series : -1 +2/3 -3/5 +4/7 -5/9 ...

sum of 10 first terms series : -1 +2/3 -3/5 +4/7 -5/9 ...

you need to discuss how those terms will be computed in a detailed manner

So for now this is my interpretation of your problem for a possible solution
make a loop that will increments a integer variable by 1 and another variable that increments by the value of the first variable then do the operations you need
and finally convert the final result's to either a negative or positive value for every loop

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.