conventions.io

Tech Challenge

2026-09-14

🦫

Daily Tech Challenge

Go

medium
Question 1 of 5

What does this Go program print, given how Go evaluates 1 / 3 versus 1.0 / 3?

Example
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