結果 : function to find length of a number in c++