# Print a greeting print("Hello, R!")
## [1] "Hello, R!"
# Assign values to variables x <- 5 y <- 10 # Perform operations with variables z <- x + y print(z)
## [1] 15
numbers <- c(1, 2, 3, 4, 5) print(numbers)
## [1] 1 2 3 4 5