历年成人每高考高起点语文试题及答案(19972011年).docVIP

  • 1
  • 0
  • 约1.13万字
  • 约 22页
  • 2017-01-02 发布于湖南
  • 举报

历年成人每高考高起点语文试题及答案(19972011年).doc

第二章 C#语法及相关知识回顾 一、语句 1、声明语句声明语句引入新的变量或常量。变量声明可以选择为变量赋值。在常量声明中必须赋值。 // double area; double radius = 2; // 常量申明 const double pi = 3.14159; 2、表达式语句用于计算值的表达式语句必须在变量中存储该值。 area = 3.14 * (radius * radius); 选择语句选择语句用于根据一个或多个指定条件分支到不同的代码段。A、if语句bool result = true; if (result == true) { Console.WriteLine(The variable is set to true.); } else { Console.WriteLine(The variable is set to false.); } if (Condition_1) { // Statement_1; } else if (Condition_2) { // Statement_2; } else if (Co

文档评论(0)

1亿VIP精品文档

相关文档