P15482 [HackerRank] Python loops
普及-
题目描述

Check Tutorial tab to know how to to solve.

Task

The provided code stub reads and integer, $n$, from STDIN. For all non-negative integers $i<n$, print $i^2$.

Example

$n=3$

The list of non-negative integers that are less than $n=3$ is $[0,1,2]$. Print the square of each number on a separate line.

0
1
4

Input Format

The first and only line contains the integer, $n$.

Constraints

$1\leq n\leq20$

Output Format

Print $n$ lines, one corresponding to each $\boldsymbol{i}$.

Sample Input 0
5

Sample Output 0
0
1
4
9
16

输入格式

见题面

输出格式

见题面

样例输入
5
样例输出
0 1 4 9 16