#include<stdio.h>void main(){int i,j,temp=0,num[100];for(i=0;i<100;i++){if(num[i]==0){break;}printf("请输入第%d个整数(输入0结束输入):",(i+1)):scanf("%d",&[i]);}for(i=0;i<100;i++){for(j=0;j<i;j++){if(num[j]>num[j+1]){temp=num[j];num[j]=num[j+1];num[j+1]=temp;}}}printf("从小到大的顺序是:\n");for(i=0;i<100;i++){if(num[i]!=0){printf("%d ",num[i]);}}}