this example does not works for values of 'a' grea

this example does not works for values of 'a' greater than 41.

Factorial 41 is an enormous number. Fact should b

Factorial 41 is an enormous number. Fact should be defined as "long", not "int" to cope.

this doesnt work for numbers >= 13!

this doesnt work for numbers >= 13!

Dear sir,
The updated example descreption works

Dear sir,
The updated example descreption works for 0 to 170 , above that it shows "infinity". Just add the right code so that it will work for a bigger number.
thanx

Hi,
Dear learner!
Here is an updated example

Hi,
Dear learner!
Here is an updated example to solve your problems. First example only evaluates the factorial of numbers between 0 and 13 and another is evaluated the factorial of all numbers that lies in double data type in java.
[url=htt

hi

i dint the understand the basics at all about the usage of BufferedReader object

How to

What if we want to print the number. Like 3!. 3*2*1

Hi This factorial program may be useful for u...

import java.io.*;
class Factorial{
public static void main(String[] args) {
A: try{
BufferedReader object = new BufferedReader(
new InputStreamReader(System.in));
System.out.println("enter the number");

java

so nice program

hi!

i've input number 3 on your program then it outputs the answer which is 6, is this correct? I guess 9 is the answer if 3!? im confused pls help..

Appreciation

good example, best suite for beginners

factorial value

Hello,
Program:
A program that calculate the factorial value of the input n!.
Use the decrementation formula(i--) for your solution.
Please help me!
thank you!

fact

hi ,will this program find the factorial of 5000000 ?
if no then how to find out that ,what data structure will it require?

10x

good one , I've tried to many times this code but without import java.io.*; and it didn't work so 10x.
I'm looking for a code that accepts a String and prints all the possibilities of its char substitution example: abc ,the result is : abc , acb, b

thanks

you really help me a lot in my assignments, someday i can repay you. hehehe

Java Factorial

this is the Factorial link

my opinion

this is site is very useful to learn java.this site contailn all the information about java programming. i am very happy to see this site.
thanks for roseindia.net

factorial

very good & understandable & nice

POWERBUILDER 8.0

please help me making a code of having a factorial chart of a number in powerbuilder..
thanx

i'm wondering.............hit yhe nail on the head

thank you what a great programer you are!please allow us to get more information about you.

i'm wondering.............hit yhe nail on the head

thank you what a great programer you are!please allow us to get more information about you.

thanks

thanks very much this site is very useful for d whose learn core java intiatly.

Java

That's a good program....

Thank u

This site s very useful fr java learning.....
Thank u

factorial logic in java

BufferedReader object = new BufferedReader(new InputStreamReader(System.in));
System.out.println("enter the number");
int a= Integer.parseInt(object.readLine());
int fact= 1;
System.out.println("Factorial of " +a+