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