R can be used as an ordinary calculator, and some say it is an over-grown calculator. Here are some examples. Remember that # is the comment character. The comments give details about the operations in case they are not clear.
2+3*5# Note the order of operations.log(10) # Natural logarithm with base e5^2# 5 raised to the second power3/2# Divisionsqrt(16) # Square rootabs(3-7) # Absolute value of 3-7pi # The numberexp(2) # exponential function# This is a comment line