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
|
1759 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input())
what's wrong with this code?
i = 0 while True: if(i
Easy Simple Solution
i = 0 j = int(input()) k = 0 while (i < j): k = i * i i += 1 print(k)