-->

Loops in Python - Hacker Rank Solution | Apna Hindi Tech | Hindi Tutorial

 





Hello Friends 

рдЖрдЬ рд╣рдо рдЖрдкрдХो Hacker Rank рдкрд░ Python Loops рдХा рдХंрдк्рд▓ीрдЯ рд╕ॉрд▓्рдпूрд╢рди рдмрддाрдПंрдЧे рд╡рд╣ рднी рдЖрд╕ाрди рднाрд╖ा рдоें। рддो рджोрд╕्рддों рдЪрд▓िрдП рдЬाрдирддे рд╣ैं рд╕ॉрд▓्рдпूрд╢рди ।


Loops Tutorial in Hindi = Loops Tutorial


Problem:- Loops in Python - Hacker Rank Solution



Task :-

The provided code stub reads and integer, , from STDIN. For all non-negative integers , print .


Example :-

n=3

The list of non-negative integers that are less than  is . Print the square of each number on a separate line.


0
1
4



Input Format :-

The first and only line contains the integer, .


Constraints:-


Output Format :-

Print  lines, one corresponding to each .


Sample Input 0 :-

5



Sample Output 0:-

0
1
4
9
16



Solution :-


if __name__ == '__main__':
    n = int(input())
    for i in range(0,n):
        print(i*i)



Video Tutorial :-





DISCLAIMER:-
The above hole problem statement is given by hackerrank.com but the solution is generated by the  Apna Hindi Tech authority if any of the query regarding this post or website fill the following contact form.

......Thank YouЁЯШК......

рдпрд╣ рднी рдкрдв़ें

Post a Comment