#write an r program to implement EXPRESSIONS, ASSIGNMENTS and decision making.
a = 10
b = 21
c = a+b
if(c%%2==0){
print("even")
}else(
print("odd")
)
## [1] "odd"
## [1] "odd"
#type2
a1 <- 9
print(a)
## [1] 10
b2 <- 21
30 -> d
print(d)
## [1] 30
cat("value of a1:",a1)
## value of a1: 9
paste("value of b2")
## [1] "value of b2"
sprintf("value of d is % d:",d)
## [1] "value of d is 30:"
c=a+b
if(c%%2==0){
print("even")
}else{
print("odd")
}
## [1] "odd"