Computer Science, asked by somaaditisrija, 11 months ago

write a program in java to accept a number and display the highest and lowest digit​

Answers

Answered by gobbo510
3

Answer:

public class display

{

public static void main (double n)

{

System.out.println("its lower value is "+ (Math.floor(n));

System.out.println("the higher value is "+ (Math.ceil(n));

}

}

Similar questions