I am trying to make the following program.
SUM=1+1/2+1/3+1/4+1/5....1/n
n should be input by the programmer.
I thought that using
for
would work, but it only gives me a series of
1+1
1+2
1+3,etc.
What I wish to get is the series itself and the total addition of it. Any help please?