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
|
1023 Discussions
|
Please Login in order to post a comment
print(int((i*((10**i)-1))/9)) this the question of geometric progession
for n in range( 1,int(input())): print ( 1111111111 % pow(10,n) * n)
how did you know that formula.how you got the idea