結果 : java program to count the digits of a given number using for loop