• 2021-04-14
    有如下程序,运行后输出的结果是()。
    j=0:n=0
    DoWhilen<3
    j=(j+1)*(j+2)
    n=n+1
    Loop
    Printj;n
  • 1823
    本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/etoppmjyyjyyoto.html

    内容

    • 0

      下列程序段的执行结果为_______。 M=0 For I=1 To 3 For J =5 To 1 Step-1 N = N+1 Next J,I Print N;J;I

    • 1

      下列程序的输出结果是_____。void main(){int i,j,m=0,n=0;for(i=0; i<2; i++)for(j=0; j<2; j++)if(j>=i) m=1; n++;printf("%d ",n);}

    • 2

      假定有以下程序段 n = 0 For i = 1 To 3 For j = -4 To -1 n = n + 1 Next j Next i 运行完毕后,n的值是

    • 3

      下列程序段的执行结果为( )。 n:0 For i=1 To 3 For j=5 To Step-1 n=n+1 Next j,i Print n:j;i A: A) 12 0 4 B: B) 15 0 4 C: C) 12 3 1 D: D) 15 3 1

    • 4

      下列程序段不能正确显示1!、2!、3!、4!的结果的是 。 A: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox( n)Next i B: Dim i%, j%, n%For i = 1 To 4 n = 1 For j = 1 To i n = n * j Next j MsgBox( n)Next i C: Dim j%, n%n = 1For j = 1 To 4 n = n * j MsgBox( n)Next j D: Dim j%, n%n = 1j = 1Do While j<=4 n=n*j MsgBox(n) j=j+1Loop E: Dim j%, n%n = 1j = 1Do n=n*j MsgBox(n) j=j+1Loop While j<=4