#include#define N 10using namespace std;int main(){int i,j,temp,a[N];cout<<"请输入十个整数:"<>a[i];for(i=0;i< ① ;i++)for(j=0;j<② ;j++)if(③){temp=a[j];④ ;a[j+1]=temp;}cout<<"数组排序以后的结果为:"<a[j+1]a[j]=a[j+1]a[j+1]=a[j]
#include#define N 10using namespace std;int main(){int i,j,temp,k,a[N];cout<<"请输入十个整数:"<>a[i];for(i=0;ia[j]a[i]>a[j]k