Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var num1, num2 int
- fmt.Scanln(&num1)
- fmt.Scanln(&num2)
- if (num1 > num2) {
- fmt.Println(num1)
- } else {
- fmt.Println(num2)
- }
- }
- ИЛИ:
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- var num1, num2 float64
- fmt.Scanln(&num1)
- fmt.Scanln(&num2)
- fmt.Println(math.Max(num1, num2))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement