Write a python program print
The following
series
1
3
4 5 6
Answers
Answered by
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
0
num = 1
for i in range(1, 4):
for j in range(1, i + 1):
print(num, end = " ")
num += 1
print( )
Similar questions
Math,
2 months ago
Math,
2 months ago
India Languages,
5 months ago
Economy,
10 months ago
Math,
10 months ago