text: First digit multiplied by the appropriate power of 10 and then add the recursive result For example , xy = ( ( x * 10 ) + y )
code: x = x * Math . Pow ( 10 , str . Length - 1 ) + y ; return ( int ) ( x ) ; }