If x is an even integer and y is an odd integer, then which of the following is an even integer ?()
A: x2+y
B: x2-y
C: (x2)(y)
D: x+y
E: x-y
A: x2+y
B: x2-y
C: (x2)(y)
D: x+y
E: x-y
举一反三
- 下面哪些定义是类型正确的? A: f :: (Integer, Integer) - Floatf (x,y) =x / y B: f :: (Integer, Integer) - Floatf (x,y) = (fromInteger x) / (fromInteger y) C: f :: (Integer, Integer) - Floatf (x,y) = 3*x + y D: f :: (Integer, Integer) - Integerf (x, y) = 3*x + y
- 下列代码执行后,窗体上显示( )。 Dim x As Integer, y As Integer x = 50: y = 30 If x > y Then x = x - y Else y = y x If x < y Then x = x 20 Form1.Print x, y
- Sub s1(ByVal x As Integer, ByVal y As Integer) Dim t As Integer t = x: x = y: y = t End Sub Sub s2(x As Integer, y As Integer) Dim t As Integer t = x: x = y: y = t End Sub 则以下说法中正确的是( )。
- 下列语句语法正确的是( ) A: if x<2*y and x>y then y=x**2 B: if x<2*y : x>y then y=x^2 C: if x<2*y and x>y then y=x2 D: if x<2*y and x>y then y=x^2
- 中国大学MOOC: 下面的程序执行完后a,b的值分别为______。 Dim x, y, a, b As Integer x = 12 : y = 8 a = 1 : b = x * y Do While x Mod 2 = 0 And y Mod 2 = 0 x = x 2 y = y 2 a = a * 2 Loop Do While x <> y If x > y Then x = x - y Else y = y - x End If Loop a = a * x b = b a