Code VS Codes
The best way to code programs.
Powered by
Blogger
.
c++
unix
oracle
bugs
Menu
.
Home
>
java
> Program to find factorial in JAVA
Friday, 27 March 2015
Program to find factorial in JAVA
MOH DNAZAR MUBEEN
java
09:56
class factorial{
public static void main(String args[])
{
int f=1,i;
for(i=1;i<=5;i++)
f=f*i;
System.out.println("factorial="+f);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Programs
▼
2015
(23)
▼
March
(19)
Address Book program in JAVA
Program to do circle operations in JAVA
Program to generate MARKSHEET in JAVA
Metric conversion program in JAVA
Calculator program in JAVA using if else statements
Small shopping project in JAVA
Matrix addition program in JAVA
Program to find diagonal elements in matrix
Download program of LOGIC GATE IN JAVA
Program to find pallindrome in JAVA
Program to find electricity bill in JAVA using if ...
Program to find area of circle and cylinder in JAVA
Swapping two variables with using third variable i...
Program to find factorial in JAVA
Program to set and print employee details
Prime number program in JAVA
Fibonacci program in JAVA
Finding five armstrong numbers in JAVA
"Hello World" program in JAVA
►
January
(4)
..
...
Premium Sponsor
Find us on Google Plus
Labels
c++
colors
java
programmingbasics
validations
Popular Posts
Program to generate MARKSHEET in JAVA
import java.util.Scanner; class Marksheet { public static void main(String[] arg) { Scanner sc=new Scanner(System.in); System.out.pri...
"Hello World" program in JAVA
Steps to develop a hello world program in java- class Hello { //Everything should be written inside this block public static voi...
Metric conversion program in JAVA
import java.util.Scanner; class conversion { static float dollartorupees() { Scanner sc=new Scanner(System.in); System.out...
Fibonacci program in JAVA
Program to find fibonacci series in JAVA class fib { public static void main(String[] arg) { int i,a=0,b=0,c=1; int n=8; ...
Address Book program in JAVA
package addressbook; public class AddressBook // This class defines an address book, consisting of 10 parts { // Class constant ...
Program to find diagonal elements in matrix
import java.util.Scanner; class diagonalm { public static void main(String[] arg) { int i,j; int a[][]=new int[3][3]; Scanner ...
Small shopping project in JAVA
import java.util.Scanner; class Product { Scanner sc=new Scanner(System.in); int ProductID; String ProductName, ProductType; float Pr...
Program to find factorial in JAVA
class factorial{ public static void main(String args[]) { int f=1,i; for(i=1;i<=5;i++) f=f*i; System.out.println("factorial=...
How to validate a date in c++ ?
Validation of date in c++ involves three steps - 1) Declare the function inside the body of a class. 2) Give definition to it outside t...
Calculator program in JAVA using if else statements
import java.util.Scanner; public class calculator { int c; public void add() { Scanner sc =new Scanner(System.in); System.out.prin...
Followers
No comments:
Post a Comment