Hello  Agaly,
Use mathematics and its Formula that is n! (n Factorial);
double product = 0.0;
Object O = new Object(); // U can use java.lang.Float as direct object data
type of float data type.
O.factorial(1000);

double Factorial(double number){
if(number  ==0 || number == 1)
       return 1;
else
   return(number * (Factorial (number-1))
}

* Please let me know anyone is having more efficient way solving this
problem.

Thanks and Regards
Sarang Gandhi



On Sun, Sep 25, 2011 at 6:19 AM, Agaly Rahmanov <unknownturk...@gmail.com>wrote:

> Can you answer to this question?
>
> 1. Write Java variable declaration
>
> Declare a variable to store a product number (1-1000)
>
> __________________________________________________
>
> --
> To post to this group, send email to
> javaprogrammingwithpassion@googlegroups.com
> To unsubscribe from this group, send email to
> javaprogrammingwithpassion+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to