Create a program that generates an array of 10 random numbers from 0 to 50 and searches for the minimum element.

Main (string [] args) {
int [] array = new int [10]; // array of 10 numbers
int minimum = 0;
Random rand = new Random ();
for (int i = 0; i <10; i ++) {
array [i] = rand.Next (0, 50); // select a random number from 0 to 50 and fill the array
Console.WriteLine (mas [i]); // display the number on the screen
if (minimum> array [i]) {// compare with the minimum
minimum = array [i];
}
}
Console.WriteLine (“Minimum element:” + min);
}



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.