class Factorial1 { public static void main (String[] args) { System.out.println ("5! = 1*2*3*4*5 = " + fact1(5)); } static int fact1 (int number) { int result = 1; for (int i = 1; i <=5; i++) result = result * i; return result; } }