Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
factorial code
n=as.integer(readline(prompt = "enter the value:")) fact=1 if(n<0){ print("not possible") }else if(n==0){ print("factorial value is 1") }else{ for(i in 1:n) fact=fact*i } print(paste("factorial of",n,"is",fact))
run
|
edit
|
history
|
help
0
College
Not able to install packages
Mandelbrotset
MSS PS: Introduction to R
TH1
123
Análise de Variâncias DIC e teste de Tukey 1
Good Ozone
Figura
Correlação