partA <- function(x) { numb <- 1 for(i in 1:x) { numb <- numb * i } return(numb) } partA(12)
## [1] 479001600