这是我的代码:
#include <stdio.h>
#include <stdlib.h>
int main(){
int noteven=0, n;
printf("Input numbers, at the end write 0 \n");
n=1;
while(n!=0){
scanf("%d", n);
if (n%2==1){
noteven++;
}
}
printf("Not even numbers quantity: %d", noteven);
}
输入数字后,终端出现错误。谁能解释为什么这不起作用?