为啥输出结果都是520啊萌新求助!!!
#include <stdio.h>int main() {
int x = 55, y = 88;
if (x > y);
x = 520;
if (x < y);
y = 520;
printf("x=%d,y=%d\n", x, y);
} if语句用错
应该是#include <stdio.h>
int main() {
int x = 55, y = 88;
if (x > y){
x = 520;
}
if (x < y){
y = 520;
}
printf("x=%d,y=%d\n", x, y);
} yangyiheng 发表于 2021-10-3 00:11
if语句用错
应该是
okok
页:
[1]