Java program to find the factorial of a given number
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to find the factorial of a given number ——————————————————————————————————————————— Enter the number 20 20! = 2432902008176640000 ——————————————————————————————————————————— kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to find the factorial of a given number ——————————————————————————————————————————— Enter the number 50 OOP's can't find 50! ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
Java Strings
Advertisement