#include<stdio.h>
void main()
{
int i,ans;
printf("Input integers: ");
for(i=0;ans!==0;)
{
scanf("%d",ans);
if(ans%2!==0)
i++;
}
printf("The sum of the odd numbers is %d",i);
}
系统没有报错,但就是在运行时