问题 解答题 已知f(x)=x2-12x2-5(x≥0)(x<0)编写一个程序,对每输入的一个x值,都得到相应的函数值. 答案 程序是:input xIf x>=0 theny=x*x-1Elsey=2*x^2-5End ifPrint yend