#include
{
int numbers[8];
int max = -32768;
int maxlength = 0;
int i=0;
for(i=0;i<8;++i)
{
printf("请输入第%d个数字:",(i+1));
scanf("%d",&numbers[i]);
} for(i=0;i<8;++i)
{
if(max
max = numbers[i];
maxlength = i;
}
} printf("最大数:%d,对应下标:%d",max,maxlength);
}
set talk off
clear
dime s(8)
for i=1 to 8
input "请输入第"+STR(i,1)+"个数:" to s(i)
endfor
max=s(1)
for i=1 to 8
if max max=s(i)
endif
endfor
?max