Skip to content

Instantly share code, notes, and snippets.

@adolfont
Created March 9, 2018 13:08
Show Gist options
  • Select an option

  • Save adolfont/e9e0a2d2cd1a1420f1f6735a53a2f3b5 to your computer and use it in GitHub Desktop.

Select an option

Save adolfont/e9e0a2d2cd1a1420f1f6735a53a2f3b5 to your computer and use it in GitHub Desktop.
defmodule PoesiaCompilada do
def mexeu_com_uma(true), do: "Mexeu com todas!"
def mexeu_com_uma(_), do: "Vamos nos empoderar mesmo assim!"
def main() do
entrada = IO.gets("Mexeu com uma? (S/N): ")
IO.puts(mexeu_com_uma(String.upcase(entrada)=="S\n"))
end
end
PoesiaCompilada.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment