151,114 views
7 votes
7 votes
Write a python program to print the square of all numbers from 0 to 10.

User Leonid Shifrin
by
2.5k points

2 Answers

21 votes
21 votes

Answer:

for i in range(11):

print(i^2)

It goes through printing the square of each number with a range of 11 since 0 is also included

User Manuel Beaudru
by
3.1k points
18 votes
18 votes
Here is the answer of you question
Write a python program to print the square of all numbers from 0 to 10.-example-1
User Dennisch
by
3.2k points