Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- float a = float.Parse(Console.ReadLine());
- float b = float.Parse(Console.ReadLine());
- float c = float.Parse(Console.ReadLine());
- if (a > b)
- {
- if (b > c)
- {
- Console.WriteLine("{0} {1} {2}", a, b, c);
- }
- else
- {
- if (a > c)
- {
- Console.WriteLine("{0} {1} {2}", a, c, b);
- }
- else
- {
- Console.WriteLine("{0} {1} {2}", c, a, b);
- }
- }
- }
- else
- {
- if (c < a)
- {
- Console.WriteLine("{0} {1} {2}", b, a, c);
- }
- else
- {
- if (b < c)
- {
- Console.WriteLine("{0} {1} {2}", c, b, a);
- }
- else
- {
- Console.WriteLine("{0} {1} {2}", b, c, a);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement