package main func abs(i int) int { r := i if r < 0 { r = -r } return r }