c语言的问题#includevoid main(){ int x,y; scanf("%d",x); if(x>2) if(x>3)y=x+4; else y=x+3; else if(x

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/04 10:32:21

c语言的问题
#includevoid main(){ int x,y; scanf("%d",x); if(x>2) if(x>3)y=x+4; else y=x+3; else if(x

scanf("%d",x),x忘了取地址了,应该改成scanf("%d",&x);,