Skip to main content
2 of 2
added 32 characters in body
bchetty
  • 111
  • 3

JAVA:

In response to the question and to the Dwaiku (Double-Haiku or whatever you wanna call it) posted by Quincunx in Java, here's the correct Haiku:

public static int factorial(int n) {
   return (n==0) ? (n+1) : (factorial(n-1) * n);
}
bchetty
  • 111
  • 3