Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Max_Method
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- GetMax(a, b, c);
- }
- public static void GetMax(int a, int b, int c)
- {
- Console.WriteLine(Math.Max(Math.Max(a,b),c));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement