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
|
1672 Discussions
|
Please Login in order to post a comment
Python Solution:
i=0 while i
range(n) generates a sequence of integers starting from 0 up to, but not including, n so it'll all be non-negative
n=int(input()) for i in range(0,n): print(i*i)