Last active
March 4, 2022 01:00
-
-
Save samueltcsantos/75e34b8296b9fd3af16cc0305fdbfe60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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