Who can help the next programming

Users questions: Seek Sn = a + aa + aaa + ... + aa ... a (n-a multiplying the last) of the value, of which a is a number, n, said a number of bits, n from the keyboard to enter
Experts answer: # include stdio.h voidmain () (inta; intb; a;for(i=1;i =n;i++){s=s+a;a=a*10+b;}printf( Sn=%d*n ,s);}
  • This information provided by the users.Thanks!