Q:

Print the squares of all the integers that are less than n using python programming

0

Print the squares of all the integers that are less than n using python programming

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

n = int(input("Enter an integer: "))
for i in range(1,n):
    print(i**2)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now