結果 : function to find length of integer in c++