• 2022-06-12
    程序执行结果s的值是 【14】 . Private Sub Command l-Click () I =0 Do S= I +S I = I + l Loop Until I >=4End Sub
  • F

    内容

    • 0

      下列程序执行后s的值是____1____,i的值是____2____ s = 1: i = 1 Do While True s = s + i i = i + 2 If i = 7 Then Exit Do Loop

    • 1

      中国大学MOOC: 下面代码执行后,变量s的值为______。 Dim i, n As Integer, s As String i = 2 : n = 12 : s = n & = Do Until n = 1 Do While n Mod i = 0 s &= i & * n = n i Loop i += 1 Loop s = Strings.Left(s, Len(s) - 1)

    • 2

      下面程序的运行结果是______。 CLEAR S=0 i=-l DO WHILE i<=20 i=i+2 IF i%5!=0 i=i+1 LOOP ENDIF s=s+i ENDDO s A: 0 B: 30 C: 35 D: 45

    • 3

      下面程序计算并输出的是_______。 Private Sub Command1_Click() a=10 s=0 Do s=s+a*a*a a=a-1 Loop Until a<=0 Print s End Sub

    • 4

      以下程序段执行后,s的值为( )。 [br][/br]Dim i%, s% [br][/br]s = 0 [br][/br]i = 2 [br][/br]Do [br][/br] i = i + 1 [br][/br] s = s + i [br][/br]Loop Until i < 5 A: 7 B: 12 C: 3 D: 0