Factorial

Java

Using Loop

Using Recursion

Python

Using Loop

Using Recursion