How to write code that will calculate 1/2+1/3-1/4+1/5-1/6...+1/50 on c++?
I should use do while. I had some ideas how to find the sum of these values. but have any id