在编译的时候没有错误和警告,但是在黑框里面输入回车的时候就停止运行了?【电脑是笔记本电脑,系统是win 10正版】
*****************************代码***************
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
int x,y,z;
printf("请输入两个整数(用空格分隔,按回车键完成):");
scanf("%d%d,&x,&y,");
z=x*y;
printf("%d*%d=%d\n",x,y,z);
return 0;
}
*****************************代码***************
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
int x,y,z;
printf("请输入两个整数(用空格分隔,按回车键完成):");
scanf("%d%d,&x,&y,");
z=x*y;
printf("%d*%d=%d\n",x,y,z);
return 0;
}