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
Math,
2 months ago
Math,
2 months ago
English,
2 months ago
Social Sciences,
5 months ago
Biology,
5 months ago
India Languages,
11 months ago