For loop in Python 3 - Hacker Rank Solution

Python Loops - Hacker Rank Solution

For loop in Python 3 - Hacker Rank Solution 

python loops hackerrank solution
For loop in Python 3 - Hacker Rank Solution

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

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.

 
 Input Format 

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

Constraints

1 <= n <= 20

Output Format 

Print n lines, one corresponding to each line.

Sample Input 0



 Sample Output 0


For loop in Python 3 - Hacker Rank Solution

Python 3

 
For loop in Python 3 - Hacker Rank Solution For loop in Python 3 - Hacker Rank Solution Reviewed by Rakaa on September 10, 2020 Rating: 5

No comments:

Powered by Blogger.