scanf()那行改为scanf("%d%d", &a, &b);输入两个数时用空格隔开
scanf()
scanf("%d%d", &a, &b);
scanf输入语句中的\n都去掉然后输入的两个整数之间要加逗号
把%d\n,%d里的,去掉