#include
#include
#define max 100
int main()
{
float a[max]={0};
float b[max-1]={0};
int n,i,j;
float temp;
float MAX=0;
printf("输入实数的个数\n");
scanf("%d",&n);
printf("输入实数(0.0):\n");
for(i=0;i
a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1] =temp;
}
for(j=0;j
b[i+1])
MAX=b[i];
printf("最大间隙为:%0.1f\n",MAX);
return 0;
}
最大间隙问题
最新推荐文章于 2019-04-29 13:39:23 发布