Is the sentence simple, compound, or complex? Whenever I crave candy, I eat a piece of fruit instead.

Acompound B. simple C. complex