跪求VB程序:双循环,输出正三角形 用* 输出,还有菱形和平行四边形~
问题描述:
跪求VB程序:双循环,输出正三角形 用* 输出,还有菱形和平行四边形~
必须用for循环的双循环
答
dim i as integerdim k as integerdim m as integerfor i=1 to 30 for k=i to 30write " "nextfor k=1 to i-1write "*"nextfor k=1 to 30write "*"next writeln next