To generalize Anton's comment a little, I should add that with the appropriate choice of $l$ and $k$, the product manifold $S^l \times N^k$ will have the property that you are looking for, where $N^k$ has hyperbolic $k$-dimensional half-space space as its cover. You can find the formulas for all of the geometric quantities related to these sorts of products in Chang, Han, Yang "On a class of locally conformally flat manifolds". This particular combination of manifolds can be used to construct many examples of manifolds with interesting curvature.