Computer Science, asked by ujjwalkumar8c28, 3 months ago

please answer this guy​

Attachments:

Answers

Answered by sudipsamanta25110
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