正在加载图片...
27.(6分) Private Sub Command1_Click() Do While x<50 x=(x+1)*(x+2) n=n+1 Loop Text1.Text Str(n) Text2.Text Str(x) End Sub 写出程序运行时单击Command1按纽后,textl和text2上的输出结果。 28.(6分) Private Sub Form_Click() a=3:b=4 Print "A=";a;"B=";b Call mult(a) Print "A=";a;"B=";b End Sub Private Sub mult(x) x=3十x b=5+b End Sub 写出程序运行后,单击窗体时的输出结果。 29.(7分) Private Sub Commandl_Click() Static b As Integer Dim I As Integer I=1 Do b=b+1 1=I+1 Loop While I<=4 Text1.Text b Text2.Text =I End Sub 写出程序运行时两次单击Commandl按纽后,文本框Textl、Text2上的输出结果。 136227. (6 Private Sub CommandLClickO Do While x < 50 x = (x 1) 铸(x + 2) n = Loop Textl. Text = Str( n) Text2. Text = Str(x) End Sub 写出程序运行时单击 m m n d l按纽后,text1 和text2 28. (6 Private Sub Form_ClickO a=3 ,b=4 Print "A="; 削"B="; b Call mult(a) Print "A=";ap"B=";b End Sub Private Sub mult(x) x = b = 十b End Sub 写出程序运行后,单击窗体时的输出结果。 29. (7 Private Sub Commandl Click() Static b As Integer Dim I As Integer I = 1 Do b = 十I I = I + 1 Loop While I < = 4 Textl. Text = b Text2. Text = I End Sub 写出程序运行时两次单击 l按纽后,文本框 2上的输出结果。 1362
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有