> 数学 >
vb题中利用if语句计算分段函数x>=20时y=x+3 10
人气:489 ℃ 时间:2020-03-21 20:30:38
解答
function f(x as double) as double
if x>=20 then
f=x+3
elseif x>10 then
f=x*3+1
else
f=x*2+1
end if
end function
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版