Advertisement
elena1234

MaxNumberInSequence

Oct 16th, 2020 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace MaxNumber
  6. {
  7.     class MainClass
  8.     {
  9.         public static void Main()
  10.         {
  11.             List<int> numbers = Console.ReadLine().Split().Select(int.Parse).ToList();
  12.             int maxNumber = numbers.Max();
  13.             Console.WriteLine(maxNumber);
  14.         }
  15.  
  16.       }
  17.  
  18.     }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement