Computer Science, asked by rajaveni03k, 1 month ago

# Write a python program for generating 1/2+2/3+3/4...+n/n+1 ​

Answers

Answered by hype10
0

Answer:

here is the answer

def sum(n):

a = 1

b = 0.0

n = input("Enter number")

n=int(n)

for i in range(1, n+1):

b = b + 1/i;

print(b)

print("...",(sum("n")))

please mark as brain list #python

Similar questions