write a program in java to accept a number and display the highest and lowest digit
Answers
Answered by
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
Hindi,
5 months ago
Computer Science,
5 months ago
Math,
11 months ago
English,
11 months ago
Accountancy,
1 year ago
Chemistry,
1 year ago