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