mistyped fac, unstable recursive call still

This commit is contained in:
dankeyy 2023-03-17 20:39:17 +02:00
parent 94f9c6712d
commit 4ed6609974
No known key found for this signature in database
GPG key ID: 9EBEF7DB1A70533D
2 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ public class Demo {
// This can be implemented more peacefully but for sake of demonstration-
// this will panic from the roc side if n is negative
// and in turn will throw a JVM RuntimeException
long n = -1;
long n = 3;
System.out.println("Factorial of " + n + " is " + factorial(n) + "\n");
}