2021-01-06
阅读量:
1004
用自定义函数与判断语句,创建由三个参数构成的自定义函数, , 自定义函数用来选择做四则 运算中的哪种运算
(a as number,b as number,c as number)=>
let
源 =if c=1 then a+b
else if c=2 then a-b
else if c=3 then a*b
else if c=4 then a/b
else "参数错误 "
in
源






评论(0)


暂无数据
推荐帖子
1条评论
0条评论
1条评论