Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace MaxNumber
- {
- class MainClass
- {
- public static void Main()
- {
- List<int> numbers = Console.ReadLine().Split().Select(int.Parse).ToList();
- int maxNumber = numbers.Max();
- Console.WriteLine(maxNumber);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement