Computer Science, asked by nikhilkumar4567b94, 17 days ago

write a Python program to display the square of number 1 to 10​

Answers

Answered by sarojch1983
0

Answer:

n = raw_input("Enter number")

a = 1

while a < n:

a = 1

print(a*a)

a += 1

if a > n:

break

Answered by ranjitathapamagar201
0

Answer:

Explanation:

print("Square of numbers between 10 to 20 are...")

for i in range(11, 20):

print(i*i, end=" ")

One liner:

print("Square of numbers between 10 to 20 are...","\n"," ".join(str(i*i) for i in range(11,20)))

Algorithm:

START.

Iterate a loop in the range I = 11 to 19.

Display the value of I².

STOP.

Similar questions