HackerRank Python Loops Problem Solutions

HackerRank Python Loops Problem Solutions

Instructor-svgAl-Mamun Sarkar
Mar 23 , 2020

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
  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram