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
Julia set variant 2
5 # SUMMARY PART B
Sierpinski triangle - changed
Pie Chart
16-09-2020ExPedro
Fractal Fourier
26-08-2020Teste
rungeefeito
Arithmetic operations in vector
Are the items of a vector in a given data frame? (Filtering basics)