fork download
  1. A=inp
  2.  
  3. # your code goes here
  4. for (i in 1:5) {
  5. print(i + 1)
  6. }
  7.  
  8. # Equivalente a :
  9. # for (i in 1:5) print (i + 1)
  10.  
  11. my_name <- readline(prompt="Ingrese su nombre: ")
  12. my_age <- readline(prompt="Ingrese su edad en años: ")
  13. my_age <- as.integer(my_age) # convert character into integer
  14.  
  15. print(paste("Hola,", my_name,
  16. "el año siguiente usted tendra",
  17. my_age + 1,
  18. "años de edad."))
Success #stdin #stdout #stderr 0.28s 40576KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: object 'inp' not found
Execution halted