That's a more difficult question than you probably think.
The most precise and most reliable way to set your bike computer is to draw a pencil line on the floor of your garage or driveway. Set your tire's valve stem on that line and roll it forward 1 revolution. Draw another line there. Measure the distance between the 2 lines in millimeters. Program that number into your computer. Works for every size tire.