1 => int total; fun int factorial(int i) { while(i > 0) { total * i => total; 1 -=> i; } return total; }