public class Pow { public static void main(String args[]){ int result = getPow(Integer.valueOf(args[0])); System.out.println(result); } static int getPow(int num){ if(num == 1) return 1; else return getPow(num - 1) * num; } }