问题 解答题

编写程序,计算函数f(x)=3x2-x+1当x=1,2,3,…,10时函数值.

答案

程序:

for  x=1∶1∶10

y=3*x2-x+1

print(% io(2),y);

end

选择题
单项选择题