Java Program to compare 3 numbers and sort using ascending or descending order

Опубликовано: 17 Май 2026
на канале: Rahul Raskar Academy
224
4

Write a program that accepts three numbers from the user and displays them
either in "Increasing Order" or in "Decreasing Order" as per the user's choice.
Choice 1: Ascending order
Choice 2: Descending order
Sample Inputs: 394, 475, 296
Choice 2
Sample Output
First number : 475
Second number: 394
Third number : 296
The numbers are in decreasing order

Whats App https://chat.whatsapp.com/CLDwXaF5p96...
Facebook
https://www.facebook.com/profile.php?...
Instagram
  / rahul.raskar1  
Youtube Channel
   / rahulraskar.  .
Online Study Material
https://raskaracademy.gnomio.com/