Advertisement
YavorGrancharov

Max_Method

Oct 4th, 2017
169
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.  
  3. namespace Max_Method
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int a = int.Parse(Console.ReadLine());
  10.             int b = int.Parse(Console.ReadLine());
  11.             int c = int.Parse(Console.ReadLine());
  12.             GetMax(a, b, c);
  13.         }
  14.         public static void GetMax(int a, int b, int c)
  15.         {
  16.             Console.WriteLine(Math.Max(Math.Max(a,b),c));
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement