03 Jun 2018
Retrieve input from user using readline function
my_num <- as.integer(readline(prompt="Enter a number: "))
R
function