JAVA PROGRAM TO COUNT THE NUMBER OF DIGITS PRESENT IN A NUMBER
Let, Given number be n , count the number of digits present in this number Example : Input n= 9876 Output: 4 There are 4 digits in 9876 , which are 9 , 8 , 7 & 6. Approach : In this approach count the digits by removing the digits from the given number starting […]
JAVA PROGRAM TO COUNT THE NUMBER OF DIGITS PRESENT IN A NUMBER Read More »