main() {int x=10,y=10,i; for(i=0;x>8;y=++i) printf("%d %d",x--,y);}
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 02:21:58
x)MT+Q54Щ
iEv֕ڙ
E@UiJ)
)J::ֵ6IET1GΆz.zf͓
,|֥Ozm:
c!T&2yo]OvWy
O >Df'a3*@:"O' k+x(c~OγKnpK N
d-t}gd6yv Y
main() {int x=10,y=10,i; for(i=0;x>8;y=++i) printf("%d %d",x--,y);}
main() {int x=10,y=10,i; for(i=0;x>8;y=++i) printf("%d %d",x--,y);}
main() {int x=10,y=10,i; for(i=0;x>8;y=++i) printf("%d %d",x--,y);}
第一次进入循环时,x = 10,y = 10,i = 0,输出中x-- = 10 ,但x = 9(前加加/前减减是先加/减后赋值给 x,但后加加和减减是先赋值给x再把x减1),此时y = 10;
第二次进入循环时,x = 9,y = 10,输出 9,1.此时x = 8,不会再进入循环
输出符合条件的xyz#includevoid main(){int x,y,z;for(x=1;x
main(){int a[]={2,4,6,8,10};int y=1,x,*p;p=&a[1];for(x=0;x
main() {int x=2,y=-1,z=2; if(x
int fun(int x) { int y; if(x>1) y=fun(x-1)+2; else y=2; return y; } main(){ int y; y=fun(3);} y=?
#include int main(){ int x=0,y=0; while(x
#include void f(int*x,int y) {*x=y+1;y=*x+2;} main() {int a=2,b=2; f(&a,b); printf(%d
%d#includevoid f(int*x,int y){*x=y+1;y=*x+2;}main(){int a=2,b=2;f(&a,b);printf(%d
%d,a,b);}
C语言中怎么计算x,y的值?#define int main(void){int x,y;x=y+1;y=3+25;printf( )}
我想搞个X的Y次方的 算法 #include stdafx.hint main(int argc,char* argv[]){int pow(int x,int y);int a,b,c;scanf(%f,%f,&a,&b);c=pow(a,b);printf(%f
,c);return 0;}int pow(int x,int y){int i,z;i=1;z=x;while(i
#include void main() { int a=3,b=2,c=1; int x=10,y=20; if(a
#include main() { int x=3,y; do { y=x--; if(!y) {printf(*);continue;} printf(#); }whi下面程序段____________#include main(){int x=3,y;do{y=x--;if(!y){printf(*);continue;}printf(#);}while(1
main(){ int x=5; while(x
void fun(int *x,int y){printf(%d%d,*x,*y);*x=3;*y=4;}main(){int x=1,y=2;fun(&y,&x);printf(%d%d,x,y);}
main() { int x=10; int y=x++; printf(%d,%d
,(x++,y),y++); }请先说出你的答案!
#includeint a(int x);int b(int y);int main(){int m,n;n=6;m=a(n);printf(%d
,m);return 0;}int a(int x){x=b(x+3);return x;}int b(int y){return y+1;}
#include #include int main() { int x,y,sqrt; scanf (%d,&x); y=sqrt(x); if (x>
main() { int x=1,y=2,z=3; int r; r=func(x+y+z,x++,++y); printf(%d,r); } int func(int a,int b,intint func(int a,int b,int c){int d;d=a+b+c;return d;}
阅读程序写出运行结果 1、 main() { int x ,y=10 ; x = -3 + 5 * 5 - 6 ; printf ( x = %d y=%d
public class Simple{public static void main(String args[]){simple(10);simple(int x){int y=x*x;System.out.println(y)}}}请帮我改正一下