#include <stdio.h>
#define NUM 30
void mybubble(int *pArr, int num)
{//使用冒泡排序法对数组pArr进行从小到大排序,num为数组元素的个数
int i, j, t;
for (i = 0; i < num - 1; i++)
{
for (j = 0; j < num - i - 1; j++)
{
if (pArr[j] > pArr[j + 1])
{
t = pArr[j + 1];
pArr[j + 1] = pArr[j];
pArr[j] = t;
}
}
}
}
int main()
{
int MA[NUM] = { 34, 76, 23, 67, 345, 234, 21, 78, 172, 90 };
int nums = 10;//数组元素个数
int mkey;
int k;
mybubble(MA, nums);
scanf("%d", &mkey);//输入一个整数
int start = 0, end = 9;
while (start<=end)
{
int m = (start+e