Question: factorial program using do while loop in java?
Answer: Java program to calculate the factorial of a given number using while loop. A factorial of a particular number (n) is the product of all the numbers from 0 to n (including n) i.e. Factorial of the number 5 will be 1*2*3*4*5 = 120.