Write a java program to enter 3 numbers and print then in descending order.
Answers
Answered by
1
Answer:
out. println("Enter a number: "); int n = reader. nextInt(); // Scans the next token of the input as an int.
...
From Fastest way to sort 3 values in Java:
if (a > b)
swap(a,b)
if (b > c)
swap(b,c)
if (a > b)
swap(a,b)
print a,b,c.
hope you like it
mark it as brainliest and follow me
Similar questions