We prove that if (Mm,h) is a Yamabe metric, then the product metric h+gflat on Mm×Tn−m is also a Yamabe metric whenever the flat torus Tn−m is sufficiently small. This generalizes earlier results for S1×Sn−1. Our method extends to the study of Type~I and Type~II Yamabe constants, Q-curvature problems, and an isoperimetric-ratio type problem.