Jump to content

Factorial: Difference between revisions

m
Line 3,884:
 
=== Iterative ===
<lang Langur>val .factorial = f(.i) {
var .answer = 1
for .x = 1; .x <= .i; .x = .x + 1 {
Line 3,891:
.answer
}
writeln .factorial(7)</lang>
 
{{out}}
1,007

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.