下列程序段中,语句错误的是()
A: PARAMETER( N=10 )
B: INTEGER : : M=20
C: M=M+N
D: PRINT( * , * )M , N
A: PARAMETER( N=10 )
B: INTEGER : : M=20
C: M=M+N
D: PRINT( * , * )M , N
举一反三
- 下列程序段中,语句错误的是() A: PARAMETER( N=10 ) B: INTEGER : : M=20 C: M=M+N D: PRINT( * , * )M , N
- m=10 n=10 DO WHILE n>m m=m+n n=n-10 ENDDO ?m 运行此程序显示的m值是( )
- 求给定自然数m和n的最大公约数。请完善程序。 Private Sub Command1_Click() Dim m As Integer, n As Integer, r As Integer m = Text1.Text n = Text2.Text If m < n Then r = m: m = n: n = r Do r = m Mod n m = n n = r Loop Until__________ Text3.Text = m End Sub Private Sub Command2_Click() Dim m As Integer, n As Integer, r As Integer m = Text1.Text n = Text2.Text If m < n Then r = m: m = n: n = r r = m Mod n Do Until _______ m = n n = r r = m Mod n Loop Text3.Text =____ End Sub Private Sub Command3_Click() Dim m As Integer, n As Integer, r As Integer m = Text1.Text n = Text2.Text If m < n Then r = m: m = n: n = r Do r = m Mod n m = n n = r Loop While________ Text3.Text =______ End Sub Private Sub Command4_Click() Dim m As Integer, n As Integer, r As Integer m = Text1.Text n = Text2.Text If m < n Then r = m: m = n: n = r r = m Mod n Do While______ m = n n = r r = m Mod n Loop Text3.Text =____ End Sube73f1fd63959cc8362d8c82d419c2353.png
- 有以下程序段 int m=33,n=66; m=m^n; n=n^m; m=m^n; 执行上述语句后,m 和 n 的值分别是
- 有如下程序: Dim a(3,3)As Integer For m = 1 To 3 For n = 1 To 3 a(m,n)=(m-1)*3+n Next n Next m For m = 2 To 3 For n = 1 To 2 Print a(n,m); Next n Next m 运行后,输出结果是( )。