qq_慕斯5088200
2019-10-02 20:13
hello.c: In function 'main': hello.c:12:5: error: expected expression before 'return' return 0; ^~~~~~ hello.c:13:1: error: expected ')' before '}' token } ^ hello.c:13:1: error: expected ')' before '}' token hello.c:13:1: error: expected ')' before '}' token hello.c:13:1: error: expected ')' before '}' token hello.c:13:1: error: expected ';' before '}' token
#include <stdio.h>
int main()
{
int x=5;
int y=5;
int z=10;
printf("x是否大于y:%d\n", x=y ); //x是否大于y
printf("y是否大于等于x:%d\n", y=x ); //y是否大于等于x
printf("y是否小于z:%d\n", y<z ); //y是否小于z
printf("z是否小于等于x:%d\n", z<=y ); //z是否小于等于x
printf("z是否等于x+y:%d\n", z=x+y ); //z是否等于x+y
return 0;
}
y+2加括号变int z = x*8/(y+2);
C语言入门
926210 学习 · 20797 问题
相似问题