Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MinNumber
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numberCount = int.Parse(Console.ReadLine());
- int input = 0;
- int min = int.MaxValue;
- int counter = 0;
- while (counter < numberCount)
- {
- input = int.Parse(Console.ReadLine());
- if (input < min)
- min = input;
- counter++;
- }
- Console.WriteLine(min);
- }
- }
- }
Add Comment
Please, Sign In to add comment