Guest User

Exam05

a guest
Mar 19th, 2014
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Ex05
  4. {
  5.     class Exam05
  6.     {
  7.         static void Main()
  8.         {
  9.             int a = int.Parse(Console.ReadLine());
  10.             int b = int.Parse(Console.ReadLine());
  11.             int c = int.Parse(Console.ReadLine());
  12.             if (a > b)
  13.             {
  14.                 if (a > c) Console.WriteLine("a");
  15.                 else Console.WriteLine("c");
  16.             }
  17.             else {
  18.                 if (b > c) Console.WriteLine("b");
  19.                 else Console.WriteLine("c");
  20.                  }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment