Use do while loop AND for loop to write Java program to calculate the factorial. In mathematics, thefactorial of a non-negative integer n is the product of all positive integers less than or equal to n. For example,
5!*2*3*4*
and
6!*2*3*4*5*6= 720
Name the class as ComputeN, and name the method as factorial. Display the result as string.