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