Created
March 9, 2018 13:08
-
-
Save adolfont/e9e0a2d2cd1a1420f1f6735a53a2f3b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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