factoriyel(a) { var factoriyel,k; factoriyel = 1;k=1; while (k <= a) { factoriyel = factoriyel * k; k=k+1; } println factoriyel; }