Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Ex21062021
- {
- class Program2
- {
- static void Main1(string[] args)
- {
- int a, b, c; // Three numbers for input
- // get first number
- Console.Write("Enter a number: ");
- a = int.Parse(Console.ReadLine());
- // get second number
- Console.Write("Enter second number: ");
- b = int.Parse(Console.ReadLine());
- // get third number
- Console.Write("Enter Third number: ");
- c = int.Parse(Console.ReadLine());
- int min, mid, max;
- min = Math.Min(Math.Min(a, b), c);
- max = Math.Max(Math.Max(a, b), c);
- mid = a + b + c - min - max;
- Console.WriteLine( "{0} , {1} , {2}", min, mid, max);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement