Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Quiz 2
Ass2 q2
Quiz 2
Garima
Outlier
mywall
Mietflächen clustern für flächenbasierte Prognosen
05-08-2020-Resolução-equaçao
Chapter 5: Sample from N(0,1)
Call option formula for Laplace distributed outcomes
stackse - search stackoverflow differently
Please log in to post a comment.