fact { const n = 5; int fact = 1; int i = 1; while (i < (n+1)) { fact = (fact * i); i = (i + 1); } print fact; }