/********** Factorial Of A Number Based on Java ********/

class Factorial
{
public static void main(String args[])
{
int a = 5;
int fact = a;
for(int i=a-1;i>=1;i--)
fact = fact * i;
System.out.println("Factorial : "+ fact);
}
}

/********** OUTPUT ***********
Factorial : 120 */

2 comments:

  1. hey its sandy, here is the website i was talking about...... the website is here

     
  2. hey its sandy, here is the website i was talking about...... the website is here