定义函数 function() 运行结果 练习:对序列1到10,求出所有偶数的平方,并输出表达式,如2^2=4 运行结果 function() pow <- function(x,y){ result <- x^y print(paste(x,"^",y,"=",result)