Created
October 31, 2018 21:05
-
-
Save marcusedu/b79630cdf9b031962b349a7059a1da7e to your computer and use it in GitHub Desktop.
This file contains 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
main(){ | |
funcaoParametroPosicionadoOpcional("Eu gosto de Video Games!",'Raul'); | |
funcaoParametroPosicionadoOpcional('As vezes sonho que estou caindo e acordo assustado', | |
'Eu Sonhando', 2); | |
funcaoParametroPosicionadoOpcional("Você aqui de novo?"); | |
} | |
void funcaoParametroPosicionadoOpcional(String msg, | |
[String sujeito = "Nameless King", | |
int repetirXVezes=1]){ | |
for(int i =0;i<repetirXVezes;i++) print('$sujeito: $msg'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment