1.7 Hello World
To print an output, simply use the function print()
## [1] "Hello Word!"
Sometimes we would also want to display the value of a variable:
## [1] 9
However, we want to print the description of the variable too. Then we have to use function cat() to combine description and output.
## The sum of x and y is 9