Can someone please help me, I really do not understand how on earth did they get x*y in this procedure ... Question asks what does procedure do ?
PROGRAM iz52(output);
VAR pom: integer;
FUNCTION calc(x,y: integer): integer;
BEGIN
IF (y=1) THEN
calc:= x
ELSE
calc:= calc(x, y-1) + x
END;
A) x+y
B) x*y
C) x^y