1
resposta

Solução

defmodule Tabuada do

    def tabuada(n) do
        tabuada(n, 10, [])
    end

    defp tabuada(_, 0, list), do: list

    defp tabuada(n, m, list) do
        tabuada(n, m-1, [(n*m)|list])
    end
end

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
1 resposta

Olá, Matheus!

Muito bom