Nilpotent elements in a ring

Let R be a commutative ring with 1. We say an element n∈R is nilpotent if there exists a number k∈N such that nk=0.
(a) Show that if n is nilpotent, then 1−n is a unit.
(b) Give an example of a commutative ring with 1 that has no nonzero nilpotent elements, but is not an integral domain.