Skip to main content
added 32 characters in body
Source Link
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 in Java:

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

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

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

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);
}
Source Link
bchetty
  • 111
  • 3

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

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