Write a program to display the numbers 0, 3, 8, 15 ........ n terms.

Program: 

n=int(input("Enter limit"))
for x in range(1,n+1):
    v=(x*x)-1
    print(v)

Comments

Popular Posts