Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TheGreaterNumberLoops
- {
- class Program
- {
- static void Main(string[] args)
- {
- int N = int.Parse(Console.ReadLine());
- int max = -2147483647;
- if (N > 0)
- {
- for (int i = 0; i < N; i++)
- {
- int Num = int.Parse(Console.ReadLine());
- if (max < Num)
- {
- max = Num;
- }
- }
- Console.WriteLine(max);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment