《2.2.3_程序的选择结构.pptVIP

  • 35
  • 0
  • 约9.13千字
  • 约 43页
  • 2017-01-01 发布于北京
  • 举报
《2.2.3_程序的选择结构

1.表达式4+7-6+1 and 4=4运行的结果是: 2.有如下vb程序段: a=2 b=5 if ab then m=a else m=b 该程序运行后,变量m的值为: 点击会考: Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 在分支语句中,程序执行一个分支后,其余分支不再执行; 总结 If 表达式 Then 语句组 End If If 表达式 Then 语句组1 Else 语句组2 End If 单分支结构: 双分支结构: If 表达式1 then 语句组1 Else End if If 表达式2 then 语句组2 Else 语句组3 End if IF语句的嵌套: Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 点击会考: 在左边的文本框输入一个100以内的正整数(包括100不包括0),单击

文档评论(0)

1亿VIP精品文档

相关文档