factorial(n){ var fact,i; i=1; fact=1; while(i<=n){ fact=fact*i; i=i+1; } return fact; } //computing factorial of tow number and adding them addFactorial(){ println (factorial(5)+factorial(3)); }