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
Explanation:
Similar questions
Environmental Sciences,
5 months ago
Social Sciences,
11 months ago
Math,
11 months ago
Biology,
1 year ago
Geography,
1 year ago
Physics,
1 year ago