Advertisement
Guest User

Exam07

a guest
Mar 19th, 2014
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Exam07
  4. {
  5.     class Exam07
  6.     {
  7.         static void Main()
  8.         {
  9.             double a = double.Parse(Console.ReadLine());
  10.             double b = double.Parse(Console.ReadLine());
  11.             double c = double.Parse(Console.ReadLine());
  12.             if (a > b)
  13.             {
  14.                 if (a > c)
  15.                 {
  16.                     Console.Write(a+" ");
  17.                     if(b>c) Console.WriteLine(b+" "+c);
  18.                 }
  19.                 else
  20.                 {
  21.                     Console.WriteLine(c+" "+a+" "+b);
  22.                 }
  23.             }
  24.             else
  25.             {
  26.                 if (b > c)
  27.                 {
  28.                     Console.Write(b + " ");
  29.                     if (b > c) Console.WriteLine(a + " " + c);
  30.                 }
  31.                 else
  32.                 {
  33.                     Console.WriteLine(c + " " + b + " " + a);
  34.                 }
  35.             }
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement