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 ArraysLab
- {
- class Program
- {
- static void Main(string[] args)
- {
- var stringArr = Console.ReadLine().Split(' ');
- var arr = new int[stringArr.Length];
- for(int i = 0; i < arr.Length; i++)
- {
- arr[i] = int.Parse(stringArr[i]);
- }
- var min = int.MaxValue;
- for(int i = 0; i < arr.Length; i++)
- {
- if (arr[i]< min)
- {
- min = arr[i];
- }
- }
- Console.WriteLine(min);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment