1+2
## [1] 3
## Subtraction
9-6
## [1] 3
##Multiplication
5*4
## [1] 20
##Division
10/2
## [1] 5
##Exponentiation
5**2
## [1] 25
5^2
## [1] 25
##Modulo: Returns the remainder after division
4%%2
## [1] 0
5%%2
## [1] 1
8%%3
## [1] 2
(3*5)+6
## [1] 21
3*5+6
## [1] 21
#BODMAS
#Assignment of variables <-
x=3
x<-23 #23 is the age of the respondent
y<-3
z<-x+y
z
## [1] 26
x+y
## [1] 26
##Print the variable x
x
## [1] 23
y
## [1] 3
z
## [1] 26
print(x) ##Prints the variable x
## [1] 23
##Adding assigned variables
y<- 18
x+y
## [1] 41
z<-x+y
z
## [1] 41
##Types of