For how many values of $n$ will an $n$-sided regular polygon have interior angles with integral degree measures?

$ \textbf{(A)}\ 16 \qquad\textbf{(B)}\ 18 \qquad\textbf{(C)}\ 20 \qquad\textbf{(D)}\ 22 \qquad\textbf{(E)}\ 24 $
To determine for how many values of \( n \) an \( n \)-sided regular polygon has interior angles with integral degree measures, we start by using the formula for the measure of an interior angle of a regular \( n \)-sided polygon:

1. **Formula for Interior Angle:**
   \[
   \text{Interior angle} = \frac{(n-2) \cdot 180^\circ}{n}
   \]

2. **Simplify the Expression:**
   \[
   \frac{(n-2) \cdot 180^\circ}{n} = 180^\circ - \frac{360^\circ}{n}
   \]

3. **Condition for Integral Degree Measure:**
   For the interior angle to be an integer, \(\frac{360^\circ}{n}\) must be an integer. This implies that \( n \) must be a divisor of 360.

4. **Find Divisors of 360:**
   The divisors of 360 are:
   \[
   1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
   \]

5. **Exclude \( n \leq 2 \):**
   Since \( n \) must be greater than 2 (as a polygon must have at least 3 sides), we exclude 1 and 2 from the list of divisors.

6. **Count the Remaining Divisors:**
   The remaining divisors are:
   \[
   3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
   \]

   There are 22 such divisors.

Conclusion:
The number of values of \( n \) for which an \( n \)-sided regular polygon has interior angles with integral degree measures is \( \boxed{22} \).