Skip to content
Advertisement

Tag: factorial

Java Factorial loop

The problem is that the factorial value is updating in a while loop I think that is the problem why. Here is the code Okay, so here is the problem when the first input is 5 The factorial of 5 is: 120 But on the second input it goes like this when I tried to input like for example 4

Advertisement