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