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
Pages (4)
1
2
3
4
Next
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...
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; ...
Metric conversion program in JAVA
import java.util.Scanner; class conversion { static float dollartorupees() { Scanner sc=new Scanner(System.in); System.out...
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...
Small shopping project in JAVA
import java.util.Scanner; class Product { Scanner sc=new Scanner(System.in); int ProductID; String ProductName, ProductType; float Pr...
Address Book program in JAVA
package addressbook; public class AddressBook // This class defines an address book, consisting of 10 parts { // Class constant ...
Program to do circle operations in JAVA
import java.text.*; public class Circle { public static void main (String[] args) { // create decimal format Decim...
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 ...
change text color of c/c++ console applications
Changing background or text of console in c++ is not a very major task. One can do it easily by doing some really good efforts . This tutor...
Followers
c++
unix
oracle
bugs
Menu
No comments:
Post a Comment