热线电话:13121318867

登录
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


92.3077
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子