+ 1
How to find number of a Factorial?
If N! is given. How to find N?
12 Antworten
+ 4
Saw this late but here's my solution
https://code.sololearn.com/cMrWxqZW8Xvp/?ref=app
+ 2
use this method and give it a Number 👇
public static void findRoot(int num){
for(int i=1;;++i){
if(num%i==0)
num/=i;
else if(num==1){
i--;
// The Result is : i | the num = i! .
System.out.println( i + "!");
break;
}else{
System.out.println(" the Number that you Entered is not Factorial of a Number! :.");
break;
}
}
https://code.sololearn.com/cYB146T3bsfO/?ref=app
+ 1
https://code.sololearn.com/cgD2IkZ3POXK/?ref=app
+ 1
you can find it like this:
https://code.sololearn.com/cTS1ThG7Qm1P/?ref=app
+ 1
Thank you everyone :')
+ 1
I was stuck into programming and what I could do was this.
https://code.sololearn.com/c02BANSBNA6h/?ref=app
0
I'm at first with programming stuff, but I'm very good at maths! So, what you have to do is to factorize the number given (example: 120=2^(3)*3*5) and suddendly rescue all the hidden factors (example: 2^(3) can be rewrite like 2*2^(2)=2*4 and you have that 120=1*2*3*4*5)
0
@Leonardo Can you write a code for that? Real quick, please.