Interest in Pascal (1)

Look at this Pascal (pseudocode) below :

 function secret(x, y : longint) : longint;
 begin
      if (y = 0) then
           secret := 1
      else
           secret := x * secret(x,y-1)
 end;

What is the value of \(secret(8,5)\) ?

×

Problem Loading...

Note Loading...

Set Loading...