第1个回答 推荐于2016-03-07
2 3 5 9 5 0 3 2 Press any key to continue
#include "stdio.h"
main()
{
int i,j,k,a[3]={2,3,5},b[5]={9,5,0,3,2},c[8];
for (i=0,j=0,k=0;i<8;i++)
{
if (j<3)
c[i]=a[j++];
else
c[i]=b[k++];
}
for (i=0;i<8;i++)
printf("%d ",c[i]);
}本回答被提问者采纳