Sum of Odd Digits of a Number in Java
Previously we have written a Java program to find the sum of digits of the given number. Now in this post, we will develop a program to calculate the sum of odd digits of a number in Java. Example:- Number = 12345Then the odd digits in a given number are 1, 3, 5 and therefore […]
Sum of Odd Digits of a Number in Java Read More »