printf函数输出问题
#include<stdio.h>int main()
{
int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;
printf("请输入任意1-16的值: \n");
scanf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d \n",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l,&m,&n,&o,&p);
printf("%2d %2d %2d %2d \n",a,b,c,d);
printf("%2d %2d %2d %2d \n",e,f,g,h);
printf("%2d %2d %2d %2d \n",i,j,k,l);
printf("%2d %2d %2d %2d \n",m,n,o,p);
return 0;
}
第一个图是作业,第二个图为什么要先输入4个数值才会显示4x4的方阵,