Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication7
- {
- class Program
- {
- static void Main(string[] args)
- {
- int firstNumber = int.Parse(Console.ReadLine());
- int secondNumber = int.Parse(Console.ReadLine());
- int max = GetMax(firstNumber, secondNumber);
- Console.WriteLine(max);
- }
- private static int GetMax(int firstNumber, int SecondNumber)
- {
- if (firstNumber > SecondNumber)
- {
- return firstNumber;
- }
- else
- {
- return SecondNumber;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement