当前位置:编程学习 > VB >>

VB的程序设计题

在Commandl的单击事件中,分别用Do-Loop While和For循环语句编写程序实现计算:1+3+5+7+9,并将结果用Label4显示出来. --------------------编程问答-------------------- 这是作业帖 好不好!
--------------------编程问答--------------------

dim i as long
for i=1 to 1+3+5+7+9

next
Label4.caption = i

--------------------编程问答--------------------

dim i as long
while (i < 5)
i = 1+2*i
loop
Label4.caption = i
补充:VB ,  网络编程
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,