- Use var para declarar três variáveis. Elas devem ter package-level scope. Não atribua valores a estas variáveis. Utilize os seguintes identificadores e tipos para estas variáveis:
1. Identificador "x" deverá ter tipo int
2. Identificador "y" deverá ter tipo string
3. Identificador "z" deverá ter tipo bool
- Na função main:
1. Demonstre os valores de cada identificador
2. O compilador atribuiu valores para essas variáveis. Como esses valores se chamam?
- Solução: https://play.golang.org/p/pAFd-F7uGZ
→ Compartilhe sua solução e converse com outros estudantes em: https://github.com/ellenkorbes/aprendago/issues/5
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.