I am learning Java using the book Java: The Complete Reference. Currently I am working on the topic Recursion.
Please Note: There are similar questi
A recursive solution using ternary operators.
public static int fac(int n) { return (n < 1) ? 1 : n*fac(n-1); }