Computer Science, asked by kalpana2006, 1 year ago

Initialise the units place digit of a number 'u' as 8, tens digit 't' as 5 and the hundreds place digit 'h' as 6. Write a Java program that uses the mathematical relation of place values of a number to calculate the number.​

Answers

Answered by rishijadwivedip912eh
3

public class xyz

{

public  void main()

{

int u = 8;

int t  = 5;

int h = 6;

int num = (h * 100) + (t * 10) + (u * 1);

System.out.println(num);

}

}

Similar questions