c语言程序查错
#include"stdio.h"int main(void)
{
int i,j,m,n,count;
m=n=1;
scanf("%d",&i);
if (i=1 || i=2)
count = 1;
printf("the number of rabbish is %d",count);
else
for(j=1;j<=i-2;j++)
{
count = m+n;
m=n;
n=count;
}
printf("the number of the robbish is %d",count);
}
上面的程序编译会有错误,一个是if (i=1 || i=2)不对,大家帮帮忙,