F#中if /then语句
2018-12-15 09:45 更新
if / then语句由布尔表达式后跟一个或多个语句组成。
句法 F#中的if / then构造具有以下语法 -
(* simple if *)
if expr then
expr流程图
例子
F# programming language provides the following types of decision making statements.当编译和执行程序时,将产生以下输出
a is less than 20
Value of a is: 10以上内容是否对您有帮助:

免费 AI IDE


更多建议: