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 Problem1_BiggerNumber
- {
- class BiggerNumber
- {
- static void Main()
- {
- Console.WriteLine("Enter the first number: ");
- int firstNumber = int.Parse(Console.ReadLine());
- Console.WriteLine("Enter the second number:");
- int secondNumber = int.Parse(Console.ReadLine());
- GetMax(firstNumber, secondNumber);
- }
- static void GetMax(int first,int second)
- {
- int result = Math.Max(first, second);
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement