Advertisement
martinvalchev

Max_Method

Feb 2nd, 2018
95
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 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.  
  13.             int output = GetMax(a, b, c);
  14.             Console.WriteLine(output);
  15.  
  16.      
  17.         }
  18.  
  19.         private static int GetMax(int a, int b, int c)
  20.         {
  21.             int output = (Math.Max(Math.Max(a, b), c));
  22.             return output;
  23.         }
  24.         }
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement