问题遇到的现象和发生背景
将123分别赋值xyz
问题相关代码,请勿粘贴截图
//体会五种输入方法
{
int x,y,z;
printf("The first method:\n");scanf("x=%d,y=%d,z=%d",&x,&y,&z);
printf("x=%d,y=%d,z=%d\n",x,y,z);
printf("The second method:\n");scanf("%d%d%d",&x,&y,&z);
printf("x=%d,y=%d,z=%d\n",x,y,z);
printf("The third method:\n");scanf("%d %d %d",&x,&y,&z);
printf("x=%d,y=%d,z=%d\n",x,y,z);
printf("The fouth method:\n"); scanf("%d %d %d ",&x,&y,&z);
printf("x=%d,y=%d,z=%d\n",x,y,z);
printf("The fifth method:\n");scanf("%d%d%d\n",&x,&y,&z);
printf("x=%d,y=%d,z=%d\n",x,y,z);
return 0;}
运行结果及报错内容
不理解每个输入输出,希望得到运算截图