Triangle Quest

Sort by

recency

|

1023 Discussions

|

  • + 0 comments
    1. a simple maths ;
    2. we need to print i*(1+10^1 +10^2 ........10^i)
    3. using gp formula we get: i*((10^i - 1)/9)
    4. then you can 'iiiii....itimes'
  • + 0 comments
    1. a simple maths ;
    2. we need to print i*(1+10^1 +10^2 ........10^i)
    3. using gp formula we get: i*((10^i - 1)/9)
    4. then you can 'iiiii....itimes'
  • + 0 comments

    print(int((i*((10**i)-1))/9)) this the question of geometric progession

  • + 0 comments

    for n in range( 1,int(input())): print ( 1111111111 % pow(10,n) * n)

  • + 0 comments

    how did you know that formula.how you got the idea