golang if else

package main

import "fmt"

func main() {
    // Declare and initialize a variable
    num := 10

    // Use if-else statements to check the value of the variable
    if num > 0 {
        fmt.Println("The number is positive.")
    } else if num == 0 {
        fmt.Println("The number is zero.")
    } else {
        fmt.Println("The number is negative.")
    }
}