We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Introduction
- Loops
- Discussions
Loops
Loops
Sort by
recency
|
1790 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) for i in range(n): print(i**2)
if name == 'main': n = int(input()) for i in range(0,n): print(i**2)
if name == 'main': n = int(input()) for i in range(0,n): print(i**2)
My solution:
i=0 n= int(input()) while i