ZRH is easily walkable, although it will take you around 75mins for the 10k or so.
HAM is also easily walkable, but again I would estimate a good 60mins to be downtown. The airport however is still inside the city, so depending on where you need to go, it can be a lot shorter.
Public transport in both cities though is relatively cheap and goes straight to the airport in regular intervals.