#include <iostream.h>
void main()
{
int a[25]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,24};
int i=0,j=3,c;
for(c=0;c<25;c++)
{
j++;
if((c==0)||(c==20))
{
cout<<a[i]<<",";
i++;
j--;
}
else if(c==4||(c==24))
{
cout<<a[i]<<endl;
i++;
j--;
}
else if((c==9)||(c==14)||(c==19))
{
cout<<a[j]<<endl;
}
else if(j>3)
{
cout<<a[j]<<",";
}
}
}
我只会这么做