getFib <- function(x) {
if (x == 1 || x == 2) {
res <- 1
} else {
res <- getFib(x-1) + getFib(x-2)
}
return(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.