Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
package main import "fmt" func main() { if 9 % 3 == 0 { fmt.Println("yes") } else { fmt.Println("no") } } /* run: yes */
package main import "fmt" func main() { if n := 7; n < 0 { fmt.Println("n < 0") } else if n < 30 { fmt.Println("n < 30") } else { fmt.Println("n >= 30") } } /* run: n < 30 */
package main import "fmt" func main() { b := true if b { fmt.Println("yes") } } /* run: yes */
package main import "fmt" func main() { if 12 % 7 != 0 { fmt.Println("yes") } } /* run: yes */