News

For example, If the given numbers are 267 and 154, the output should be 11. Below is the explanation - Last digit of the 267 is 7 Last digit of the 154 is 4 Sum of 7 and 4 = 11 Write a program to help ...
Java program for Sum of Digits import java.util.*; class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int rem ...