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