GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Data-Structure-Algorithm-Java/Recursion/factorial.java at main · gourabofficial/Data-Structure-Algorithm-Java Expand file tree/ Copy pathfactorial.javaMore file actions 16 lines (13 loc) · 353 Bytes / Copy pathfactorial.javaFile metadata and controls16 lines (13 loc) · 353 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public class factorial { public static void main(String[] args) { int result = find_factorial(5); System.out.println("Factorial is: " + result); } static int find_factorial(int num) { if (num == 0 || num == 1) { return 1; } return num * find_factorial(num - 1); } } // 5 = 5*4*3*2*1 |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |