scanf()格式符里的'\n' 多余了,删除,同时四个参数,应为:scanf_s(”%d%d%d%d“,&num1,&num2,&num3,&num4);输入的时候,四个数字之间用空格分隔:1 2 3 4
要用四个%d才行,然后输入的时候,四个数字之间要加空格才行