#include<stdio.h> int main() { int x = 0, y = 5, z = 3; while(z-->0 && ++x<5) { y= y - 1; } printf("%d, %d, %d\n", x, y, z); return 0; }
2,2,0
3,2,-1
4,3,-1
5,-2,-5
int x = 0, y = 5, z = 3; while(z-->0 && ++x<5) { y= y - 1; }
y= y - 1;
}
主要考察的是++
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题