HackerRank Python Loops Problem Solutions

Author: Al-mamun Sarkar Date: 2020-03-23 15:03:04

HackerRank Python Loops Problem Solutions

Code:

if __name__ == '__main__':
    n = int(input())

    for i in range(0, n):
        print(i * i)

Test Input:

5

Test Output:

0
1
4
9
16