3 function pot(base, exp: integer): integer;
\r
6 if exp > 0 then pot := base * pot(base, exp - 1)
\r
15 writeln (' 2 a la 4 es: ', pot(2,4));
\r
16 writeln (' 3 al cubo es: ', pot(3,3));
\r
18 for i := 0 to 3 do if cadena[i+1] = 'a' then writeln('letra ', i+1, ' = ', pot(2,i));
\r