public static void Main(String[] args)
Console.WriteLine("This program will sort any 3 real numbers: ");
Console.WriteLine("Enter the first number: ");
Console.WriteLine("Enter the second number: ");
Console.WriteLine("Enter the third number: ");
if (firstInput > thirdInput)
if (firstInput > secondInput)
if (thirdInput > secondInput)
Console.WriteLine("The descending order of the numbers that you chose is: " + firstInput + ", " + thirdInput + ", " + secondInput);
Console.WriteLine("The descending order of the numbers that you chose is: " + firstInput + ", " + secondInput + ", " + thirdInput);
Console.WriteLine("The descending order of the numbers that you chose is: " + secondInput + ", " + firstInput + ", " + thirdInput);
if (thirdInput > secondInput)
if (secondInput > firstInput)
Console.WriteLine("The descending order of the numbers that you chose is: " + thirdInput + ", " + secondInput + ", " + firstInput);
Console.WriteLine("The descending order of the numbers that you chose is: " + thirdInput + ", " + firstInput + ", " + secondInput);
Console.WriteLine("The descending order of the numbers that you chose is: " + secondInput + ", " + thirdInput + ", " + firstInput);
private static void input(out double result)
while (!double.TryParse(Console.ReadLine(), out result));
private static void input(out int result)
while (!int.TryParse(Console.ReadLine(), out result));
private static void input(out Boolean result)
while (!Boolean.TryParse(Console.ReadLine(), out result));
private static void input(out string result)
result = Console.ReadLine();