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 MinNumber
- {
- class Program
- {
- static void Main(string[] args)
- {
- var end = int.Parse(Console.ReadLine());
- var minNumber = int.MaxValue;
- for (int i = 0; i < end; i++)
- {
- var num = int.Parse(Console.ReadLine());
- if (num < minNumber)
- {
- minNumber = num;
- }
- }
- Console.WriteLine(minNumber);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment