non-numeric argument to binary operator - getting numerical input from user

前端 未结 0 1643
盖世英雄少女心
盖世英雄少女心 2020-12-05 03:28

i was trying to execute a simple addition code,

x<-readline()
x<-as.integer(x)
y<-readline()
y<-as.integer(y)
sum<-x+y
print(sum)
相关标签:
回答
  • 消灭零回复
提交回复
热议问题