varx<-TRUE
vary<-FALSE
print(!vary)
print(varx&vary)
print(varx|vary)
isTRUE(vary)
vara<-5
if(vara>4)
{
print(varx)
}else
{
print(vary)
}
x<-switch(
3,
"first",
"second",
"third",
"fourth"
)
print(x)
v<- LETTERS[1:26]
for (i in v)
{
print(i)
}
values<- c("while loop")
count <- 5
while (count < 7) {
print(values)
count=count + 1
}
b<- ("repeat loop")
count<- 2
repeat{
print(b)
count<- count + 1
if(count > 7){
break
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: