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,
3 months ago
Math,
3 months ago
India Languages,
6 months ago
Economy,
11 months ago
Math,
11 months ago