Write a program to display the numbers. 0, 7, 26, 63........ n terms.

Program :

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

Comments

Popular Posts