Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int numCount = int.Parse(Console.ReadLine());
- int i= 0;
- int max = int.MinValue;
- while(i < numCount)
- {
- int input = int.Parse(Console.ReadLine());
- if(input > max)
- {
- max=input;
- }
- i++;
- }
- Console.WriteLine(max);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement