factorial of a number using while loop in java. import math # suppose i