write a Python program to print the following series 1 2 4 7 .....upto n terms
Answers
Answered by
2
n = int(input("enter a number of series"))
first = 1
second = 0
for i in range(0 , num):
first = first + second
print(first)
second = second + 1
Similar questions
English,
3 months ago
English,
3 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Science,
11 months ago