grach

GreaterNumber

Jul 11th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. namespace GreatherNumber
  5. {
  6.     public class Program
  7.  
  8.     {
  9.         public static void Main()
  10.         {
  11.             var a = double.Parse(Console.ReadLine());
  12.             var b = double.Parse(Console.ReadLine());
  13.  
  14.             if (a > b)
  15.             {
  16.                 Console.WriteLine(a);
  17.             }
  18.             else
  19.             {
  20.                 Console.WriteLine(b);
  21.             }
  22.        }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment