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
- Math
- Triangle Quest
- Discussions
Triangle Quest
Triangle Quest
Sort by
recency
|
1027 Discussions
|
Please Login in order to post a comment
n = int(input()) for i in range(1, n): print(i * (10**i - 1) // 9)
Thats a math question.
for i in range(1,int(input())): print((10**i - 1) // 9 * i)
simple solution
For Python3