Computer Science, asked by singhlalan4257, 5 months ago

Write a python program print
The following
series
1
3
4 5 6​

Answers

Answered by keyboardavro
0

Answer:

n=int(input("Enter the number of terms: "))

sum1=0

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

   sum1=sum1+(1/i)

print("The sum of series is",round(sum1,2))

Explanation:

Answered by Oreki
0

num = 1

for i in range(1, 4):

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

print(num, end = " ")

num += 1

print( )

Similar questions