vkorbes / aprendago

Curso completo em português da linguagem Go, de zero a ninja! 🇧🇷
http://aprendago.com
1k stars 179 forks source link

Exercício: Capítulo 7, Exercício 10 (Nível: 3) #26

Open vkorbes opened 3 years ago

vkorbes commented 3 years ago

Exercício: Capítulo 7, Exercício 10 (Nível: 3)

Link para o vídeo:

Use esta thread para compartilhar sua solução, discutir o exercício com os colegas e pedir ajuda caso tenha dificuldades!

thiagoalgo commented 3 years ago
- fmt.Println(true && true) => true
- fmt.Println(true && false) => false
- fmt.Println(true || true) => true
- fmt.Println(true || false) => true
- fmt.Println(!true) => false
viniciussanchez commented 3 years ago

https://play.golang.org/p/CIdxP_EAjD-

tomxdev commented 3 years ago
package main

import "fmt"

func main() {
    fmt.Println(true && true)
    fmt.Println(true && false)
    fmt.Println(true || true)
    fmt.Println(true || false)
    fmt.Println(!false)
}
an4kein commented 3 years ago

https://play.golang.org/p/iSniGI7i63x

JPauloMoura commented 2 years ago

Anote (à mão) o resultado das expressões:

CarlosSMA commented 2 years ago
wfrsilva commented 2 years ago

Cap. 7 – Exercícios: Nível #3 – 10 https://go.dev/play/p/5bdtVpfr_vD

image

M3L1M commented 1 year ago

fmt.Println(true && true) fmt.Println(true && false) fmt.Println(true || true) fmt.Println(true || false) fmt.Println(!true)

DominMFD commented 2 months ago

https://go.dev/play/p/nB2pAb7GAmS