新手,想问问这个程序哪里出错了,输入一个数字之后就没有结果了?

图片说明
#include
int main ()
{
int i,j,s,b,c;
printf("Input num:");
scanf("%d",&s);
if(s {
printf("Prime number is 2");
}
else if(s==2)
{
printf("Prime number is 3");
}
else
{
while(b=i)
{
i=s++;
for(j=2;j if(i%j==0)break;
if(j=i)
b=i;
}
while(c=i)
{
i=s--;
for(j=2;j if(i%j==0)break;
if(j=i)
c=i;
}
if((b-s)>(s-c))
{
printf("Prime number is %d",b);
}
else if((b-s)==(s-c))
{
printf("Prime number is %d %d",b,c);
}
else
{
printf("Prime number is %d",c);
}
}

 return 0;

}

while(b=i)
->
while(b==i)
问题解决的话,请点我回答左上角的采纳,谢谢