#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int Max(int x, int y)
{
return (x > y ? x : y);
}
int main()
{
int a[10];
int i;
int m = a[0];
for (i = 0; i < 10; i++)
{
scanf("%d", &a[i]);
}
for (i = 1; i < 10; i++)
{
if (Max(m,a[i]) > m)
{
m = Max(m, a[i]);
}
}
printf("%d\n", m);
system("pause");
return 0;
}
比较十个数的大小
猜你喜欢
转载自blog.csdn.net/qq_44840046/article/details/89532292
今日推荐
周排行