Computer Science, asked by jainnishtha2005, 7 months ago

write a Python program to print the following series 1 2 4 7 .....upto n terms​

Answers

Answered by GamerAzim
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