please answer this guy
Attachments:
Answers
Answered by
0
import java.util.*;
public class Number
{
public static void main(String[] args)
{
int a, b, c, d;
Scanner sc = new Scanner(System.in);
System.out.print("Enter a 3 digit no. = ");
a = sc.nextInt();
b = a % 10;
a = a - b;
c = (a % 100) * 0.1;
d = (int) c + b;
System.out.print("Sum = "+ d);
}
}
Similar questions
Accountancy,
1 month ago
World Languages,
1 month ago
Science,
1 month ago
Social Sciences,
3 months ago
Biology,
3 months ago
India Languages,
8 months ago