下列语句正确的是________。
A: If X < 3 * Y And X > Y Then Y = X ^ 3
B: If X < 3 * Y And X > Y Then Y = X3
C: If X < 3 * Y : X > Y Then Y = X ^ 3
D: If X < 3 * Y And X > Y Then Y = X * * 3
A: If X < 3 * Y And X > Y Then Y = X ^ 3
B: If X < 3 * Y And X > Y Then Y = X3
C: If X < 3 * Y : X > Y Then Y = X ^ 3
D: If X < 3 * Y And X > Y Then Y = X * * 3
A
举一反三
- 下列语句正确的是( ) A: If x<3*y And x>y Then y=3x B: If x<3*y And x>y Then y=x^3 C: If x<3*y : x>y Then y=x^3 D: If x<3*y And x>y Then y=x**3
- 如下C程序的输出是什么?#include [stdio.h]void Func1 (int x, int y);void Func2 (int *x, int *y); int main() { int x = 3; int y = 4;Func1 (x, y); printf ("x = %d, y = %d\n", x, y);Func2(&x, &y); printf ("x = %d, y = %d\n", x, y);} void Func1 (int x, int y) { x = x + y; y = x - y; x = x - y; printf ("x = %d, y = %d\n", x, y);} void Func2 (int *x, int *y) { *x = *x + *y; *y = *x - *y; *x = *x - *y;;} A: x = 3, y = 4x = 3, y = 4x = 3, y = 4 B: x = 4, y = 3x = 4, y = 3x = 4, y = 3 C: x = 3, y = 4x = 3, y = 4x = 4, y = 3 D: x = 4, y = 3x = 3, y = 4x = 4, y = 3
- 执行以下语句的结果为______。 int x=3,y;int*px=&x;y=*px++; A: x=3,y=4 B: x=3,y=3 C: x=4,y=4 D: x=3,y不知
- 已知int x=1,y=2,z=3;以下语句执行后x,y,z的值是( ). if(x>y) z=x; x=y; y=z; A: x=1, y=2, z=3 B: x=2, y=3, z=3 C: x=2, y=3, z=1 D: x=2, y=3, z=2
- 应用Matlab软件计算行列式[img=110x88]17da5d7b00219d6.png[/img]为( ). A: x^2 - 6*x^2*y^2 + 8*x*y^3 - 3*y^4 B: x^3 - 6*x^2*y^2 + 8*x*y^3 - 3*y^4 C: x^4 - 6*x^2*y^2 + 8*x*y^3 - 3*y^4 D: x^5- 6*x^2*y^2 + 8*x*y^3 - 3*y^4
内容
- 0
执行语句:scanf("x=%f,y=%f",&x,&y);,使得x、y均为3,则正确的输入形式是______。 A: 3,3 B: 3 3 C: x=3,y=3 D: x=3 y=3
- 1
下列语句正确的是( ) A: If x<3*y And x>y Then y=3x B: If x<3*y And x>y Then y=x^3 C: If x<3*y : x>y Then y=x^3 D: If x<3*y And x>y Then y=x**3
- 2
已知int x=3,y=4;,写出下列表达式的值 (1) (x,y) (2) x>y?x:y (3) x?y:x (4) (x>y)?(y>=2)?1:2:(y>x)?x:y
- 3
下列程序的结果为().change(intx,inty){intt;t=x;x=y;y=t;}main(){intx=2,y=3;change(x,y);printf("x=%d,y=%d\n",x,y);} A: A)x=3,y=2 B: B)x=2,y=3 C: C)x=2,y=2 D: D)x=3,y=3
- 4
若要求:当数学式3 A: if(x>3)if(x<7)y=1; B: if(x>3||x<7)y=1; C: if(x<3);elseif(x<7)y=1 D: if(!(x<=3))y=y;elseif(7>x)y=1;