• 2021-04-14
    /*【程序填空】题目:产生15个[20,80]上的随机整数,用顺序法按从小到大排序后输出。*/#include"stdio.h"#include"stdlib.h"#defineN15main(){inti,j,k,a[N];for(i=0;ia[i]=rand()%61+20;for(i=0;i/***********SPACE***********/for(【?】;j/***********SPACE***********/if(【?】){k=a[i];/***********SPACE***********/【?】;a[j]=k;}for(i=0;i/***********SPACE***********/printf("%5d",【?】);printf("\n");}
  • 举一反三