Advertisement
Guest User

Untitled

a guest
May 8th, 2015
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Problem1_BiggerNumber
  8. {
  9. class BiggerNumber
  10. {
  11. static void Main()
  12. {
  13. Console.WriteLine("Enter the first number: ");
  14. int firstNumber = int.Parse(Console.ReadLine());
  15. Console.WriteLine("Enter the second number:");
  16. int secondNumber = int.Parse(Console.ReadLine());
  17.  
  18. GetMax(firstNumber, secondNumber);
  19. }
  20. static void GetMax(int first,int second)
  21. {
  22. int result = Math.Max(first, second);
  23. Console.WriteLine(result);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement