2026-09-14
Daily Tech Challenge
What does this Go program print, given how Go evaluates 1 / 3 versus 1.0 / 3?
package main
import "fmt"
const ratio = 1 / 3
func main() {
fmt.Println(ratio, 1.0/3)
fmt.Println(5/2, 5.0/2)
}Monday, September 14, 2026 · A new challenge drops every day