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