Computer Science, asked by Obliviate, 4 months ago

Write a program in python to print square of numbers from 1 to 10

Answers

Answered by vishesh421157
2

Answer:

Write a program that asks the user for a limit, and then prints out the sequence of square numbers that are less than or equal to the limit provided.

Max: 10

1

4

9

Here the last number is 9 because the next square number (16) would be greater than the limit (10).

Here is another example where the maximum is a square number:

Max: 100 1

4

9

16

25

36

49

64

81

100

Similar questions