Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace Problem_01
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             int firstNumber = int.Parse(Console.ReadLine());
  12.             int secondNumber = int.Parse(Console.ReadLine());
  13.  
  14.             int max = GetMax(4, 6);
  15.             Console.WriteLine(max);
  16.         }
  17.  
  18.         static int GetMax(int firstInt, int secondInt)
  19.         {
  20.             if (firstInt > secondInt)
  21.             {
  22.                 return firstInt;    
  23.             }
  24.             else
  25.             {
  26.                 return secondInt;
  27.             }
  28.            
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement