Advertisement
Guest User

Untitled

a guest
May 7th, 2015
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace BiggerNumber_1
  8. {
  9.     class BiggerNumber_1
  10.     {
  11.         static int GetMax(int a, int b)
  12.         {
  13.             int c = Math.Max(a, b);
  14.             return c;
  15.         }
  16.         static void Main(string[] args)
  17.         {
  18.             int first = int.Parse(Console.ReadLine());
  19.             int second = int.Parse(Console.ReadLine());
  20.  
  21.             int max = GetMax(first, second);
  22.             Console.WriteLine(max);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement