Triangle Quest

  • + 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'