golang if statements code example
Example: if statements in go
a := 4
b := 6
if a + b == 10 {
fmt.Println("a + b is equal to 10!")
} else {
fmt.Println("a + b does not equal 10...")
}
a := 4
b := 6
if a + b == 10 {
fmt.Println("a + b is equal to 10!")
} else {
fmt.Println("a + b does not equal 10...")
}