Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class NumberComparer
- {
- static void Main()
- {
- Console.WriteLine("Enter first number.");
- double firstNum = double.Parse(Console.ReadLine());
- Console.WriteLine("Enter second number.");
- double secondNum = double.Parse(Console.ReadLine());
- Console.WriteLine("The greater number is: {0}", Math.Max(firstNum, secondNum));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment