1、VB 程序设计技能操作之图形输出第 1 页,共 4 页VB 图形输出导学案姓名:_技能操作目标:1、理解并掌握图形输出的基本算法2、掌握确定算法变量的方法口诀3、掌握常见图形程序代码的编写一、读程序,在方框中写出下列程序输出的图形Private Sub Command1_Click()ClsFor i = 1 To 5For j = 1 To 9Print “*“;Next jPrintNext iEnd SubPrivate Sub Command2_Click()ClsFor i = 1 To 9For j = 1 To 9Print “*“;Next jPrintNext iEnd Su
2、bPrivate Sub Command3_Click()ClsFor i = 1 To 9Print Tab(i);For j = 1 To 9Print “*“;Next jPrintNext iEnd SubVB 程序设计技能操作之图形输出第 2 页,共 4 页Private Sub Command4_Click()ClsFor i = 1 To 9Print Tab(i);For j = 1 To 10 - iPrint “*“;Next jPrintNext iEnd SubPrivate Sub Command5_Click()ClsFor i = 1 To 9Print Tab(i);For j = 1 To 10 - iIf j Mod 2 = 1 ThenPrint “*“;ElsePrint “#“;End IfNext jPrintNext iEnd Sub二、通用算法VB 程序设计技能操作之图形输出第 3 页,共 4 页三、程序填空四、知识应用1、输出如下图形,请写出相应代码For i = 1 To For j = 1 To If ThenElsePrint “$“;End IfNext jPrintNext iVB 程序设计技能操作之图形输出第 4 页,共 4 页2、输出如下图形,请写出相应代码3、输出如下图形,请写出相应代码