Java/AppliedOperations/Factorial.java
import java.util.Scanner;
/*Following program prints out the Factorial of the variable input*/
public class Factorial {
    public static void main(String[] args) {
        int fact = 1;
        int i = 1;
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter the number:");
        int num = sc.nextInt();
        while (i<=num){
            fact = fact * i;
            i++;
        }
        System.out.println("The Factorial is "+ fact);
    }
}
