Computer Science, asked by archanamallick1340, 8 months ago

Write a java program to accept two numbers from the user. Calculate and display the sum of their unit place digit.

Answers

Answered by SounakGuchhait
2

Answer:

import java.util.*;

class sum_unit

{

static void main()

{

Scanner sc= new Scanner(System.in);

int a,b,s=0;

System.out.println("enter two numbers");

a=sc.nextInt();

b=sc.nextInt();

s=a%10 + b%10;

System.out.println("sum of unit digits="+s);

}

}

Answered by chinmaykshetty
0

Answer:

ftdatyfdsrjgfdrdFgfdv

Explanation:

hgxhgxxhjkjxxx

Similar questions