Posted by: billo February 13, 2010
C++ adding fractions
Login in to Rate this Post:     0       ?        

I can add 1+2+3....+10 in C++

But my question is
How to add 1/1+ 1/2+1/3...+1/9+1/10 .

I tried but I am getting answer in negative number.

 Can anyone help me with this please.
Read Full Discussion Thread for this article