R Program to add two vectors and print the result on the console By: Chaitra Created: 12/24/2021 08:06 Last modified: 07/20/2025 12:12 Program x <- c(1, 2, 3) y <- c(4, 5, 6) sum <- x + y print(sum) Output [1] 5 7 9