namespace ConsoleApplication49 class Program static void Main string a

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
namespace ConsoleApplication49
{
class Program
{
static void Main(string[] args)
{
int[] a = new int[10] { 1, 2, -3, 4, 5, 6, -7, 8, 12, 4 };
int min = a[0];
for (int i = 0; i < a.Length; i++)
{
if (a[i] < min)
{
min = a[i];
}
}
Console.WriteLine(min);
}
}
}