News

Print the sum of its odd placed digits and sum of its even placed digits. // Input Format // Constraints // 0 < N <= 1000000000 // Output Format // Sample Input // 2635 // Sample Output // 11 // 5 // ...
package chapter_02; import java.util.Scanner; /** * (Sum the digits in an integer) Write a program that reads an integer between 0 and * 1000 and adds all the digits in the integer. For example, if an ...