Task
The provided code stub reads an integer, n, from STDIN. For all non-negative integers i The provided code stub reads an integer, n, from STDIN. For all non-negative integers i<n , print i*i. Example 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. Solution
0
1
4
if __name__ == '__main__':
n = int(input())
for i in range(n):
print(i*i)
Add a comment: