#To find the factorial of a number: fact<-function(num){ answer=1 for(i in 1:num){ answer=answer*i } print(answer) } fact(10)
To embed this project on your website, copy the following code and paste it into your website's HTML: