Last active
March 3, 2022 12:47
-
-
Save samueltcsantos/8cd3d46f5769e2c084cae39f08fd6f45 to your computer and use it in GitHub Desktop.
This file contains 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 numero1 int | |
var numero2 int | |
fmt.Print("Digite o primeiro número: ") | |
fmt.Scan(&numero1) | |
fmt.Print("Digite o segundo número: ") | |
fmt.Scan(&numero2) | |
if numero1 > numero2 { | |
fmt.Println("O maior é ", numero1) | |
} else { | |
fmt.Println("O maior é ", numero2) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment