Finden Sie die kleinste Zahl in einem Array
static int SmallestNumberin(int[] numbers){
int smallestNumber = numbers[0];
for (int i = 1; i < numbers.Length +1; i++)
{
if(numbers[i] < smallestNumber){
smallestNumber = numbers[i];
}
}
return smallestNumber;
}
Energetic Eagle