# Contoh 1
y <- 2 + 8
2 + 7 -> y
y
## [1] 9
x <- 2 + 10
2 + 6 -> x
x
## [1] 8
m <- matrix(data = x, nrow = 4, ncol = 3)
m
##      [,1] [,2] [,3]
## [1,]    8    8    8
## [2,]    8    8    8
## [3,]    8    8    8
## [4,]    8    8    8
c = (9+27)*3/(20-14)
c
## [1] 18
d = (12*6)/14
d
## [1] 5.142857
e = 12%%8
e
## [1] 4
f = 12^8
f
## [1] 429981696
y = log10(6)*4
y
## [1] 3.112605
h = sin(30)/2
h
## [1] -0.4940158
a = sqrt(18)
a
## [1] 4.242641
x <- c(1:10); y <- x^2
x
##  [1]  1  2  3  4  5  6  7  8  9 10