8|error: lvalue required as left operand of assignment, C语言编译,下面是小白的代码,求解释!急!
#include<stdio.h>intmain(){intw;w=8;scanf("%d",&w);if(w%2=0)printf("YES");}...
#include<stdio.h>
int main()
{
int w ;
w = 8;
scanf("%d",&w);
if( w%2=0 )
printf("YES");
} 展开
int main()
{
int w ;
w = 8;
scanf("%d",&w);
if( w%2=0 )
printf("YES");
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询