问题
填空题
给出一个算法:
Input x
If x≤0 then
f(x)=4x
Else
f(x)=2x
End if
Print f(x)
End
根据以上算法,可求得f(-3)+f(2)的值为________
答案
-8
考查了程序框图的运用。
给出一个算法:
Input x
If x≤0 then
f(x)=4x
Else
f(x)=2x
End if
Print f(x)
End
根据以上算法,可求得f(-3)+f(2)的值为________
-8
考查了程序框图的运用。