<span style="font-size:18px;">int minValue(int arr[])
{
int min = arr[0];
for (int i = 0; i < 8; i++)
{
if (arr[i] < min)
{
min = arr[i];
}
}
return min;
}
int _tmain(int argc, _TCHAR* argv[])
{
int arr[] = {1, 3, 90, 12, 6, 11, 15, 4};
int m = minValue(arr);
printf("%d", m);
getchar();
return 0;
}</span>
求数组最小值
最新推荐文章于 2022-12-15 20:30:15 发布