$r \gets 1$
for $i \gets 1$ to $y$:
$\;\;\;\;$ $r \gets r \times y$
$\;\;\;\;$ # Ligne A
return $r$