我试图打印数组中的最大数字,但出现错误,显示错位。我试着把括号放在周围,但仍然有错误。我不知道为什么会出现错误的 else 错误。请帮忙:>.<
#include <stdio.h>
#include <conio.h>
void main()
{
int lar, yem;
clrscr();
int aray[10];
for (yem = 0; yem < 10; ++yem)
{
printf("Input numbers:");
scanf("%d", &aray[yem]);
}
lar = aray[0];
for (yem = 1; yem < 10; ++yem)
{
if (aray[yem] > lar);
lar = aray[yem];
else
++yem;
printf("Biggest: %d\n", lar);
}
getch();
}