Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package main
import (
"fmt"
)
func main() {
var numero int
fmt.Print("Digite um número inteiro: ")
fmt.Scan(&numero)
if numero % 2 == 0 {
fmt.Println(numero, " é Par")
} else {
fmt.Println(numero, "é Impar")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment