What's wrong with this R function deriving area of each shape?

后端 未结 0 1192
名媛妹妹
名媛妹妹 2020-12-13 23:40
area<-function(...){
 x<-c(...)
 cat("It is area of: ", x[1])
 if (x[1]=="triangle"|1) {
   cat("the baseline is: ", x[2])
   cat         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题