Write a program to display the numbers 1, 4, 9, 16 ........ n terms.

Program:

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

    print(v)

Comments

Popular Posts