计算机二级模块与VBA编程基础(有KEY).docVIP

  • 3
  • 0
  • 约1.62万字
  • 约 16页
  • 2021-10-21 发布于湖南
  • 举报
计算机二级模块与VBA编程基础(有KEY) 计算机二级模块与VBA编程基础(有KEY) PAGE 计算机二级模块与VBA编程基础(有KEY) If 条件 then [语句] Else [语句] End if 行IF语句:(不需要end if) If x0 then y=1 If x=0 then y=0 If x0 then y=-1 块if语句:(一个IF语句对应一个end if) If x0 then Y=1 End if If x=0 then Y=0 End if If x0 then Y=-1 End if Elseif语句: If x0 then Y=1 Elseif x=0 then Y=0 Elseif x0 then Y=1 End if 多路分支:(遇到符合条件的就结束) Select case x Case is0 Y=1 Case 0 Y=0 Case is0 Y=-1 End select Case 1 to 20 Case 2,4,6,10 Case is=10,1to 20,40,60 不能有AND逻辑运算符 循环: Do.. loop 的五种结构(不需要编写程序,写出执行过程) I=1 Do while i=5 S=s+20 I=I+1 L Do … Loop while Do until .. L Do …

文档评论(0)

1亿VIP精品文档

相关文档