fact<-function(n){ if(n==1) { return(1) } else { return(n*fact(n-1) }}fact(4)
Standard input is empty
Standard output is empty
Error: unexpected '}' in: " return(n*fact(n-1) }" Execution halted
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!