Module: Loop statement with condition - while


Problem

13 /21


Number squares

Problem

Given a natural number N, print in ascending order all squares of natural numbers not exceeding N.

Input 
One natural number is entered.

Imprint 
Print all numbers in one line, separated by spaces.
 

 

Examples
# Input Output
1 50 1 4 9 16 25 36 49