- Crie um tipo. O tipo subjacente deve ser int.
- Crie uma variável para este tipo, com o identificador "x", utilizando a palavra-chave var.
- Na função main:
1. Demonstre o valor da variável "x"
2. Demonstre o tipo da variável "x"
3. Atribua 42 à variável "x" utilizando o operador "="
4. Demonstre o valor da variável "x"
- Para os aventureiros: https://golang.org/ref/spec#Types
- Agora já somos quase ninjas nível 1!
- Solução: https://play.golang.org/p/snm4WuuYmG
→ Compartilhe sua solução e converse com outros estudantes em: https://github.com/ellenkorbes/aprendago/issues/7
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.