Step 1: Understanding the Concept
The average force on the walls is \(F = PA\), where \(A\) is the wall area.
For an ideal gas in a closed container, \(PV = nRT\) with \(n\) and \(V\) fixed.
Step 2: Relating Force to Temperature
\(P = \dfrac{nRT}{V}\), so \(P \propto T\).
The area is constant, so \(F = PA \propto T\).
Step 3: Find the Power
Comparing \(F \propto T^x\) with \(F \propto T^1\) gives \(x = 1\).
Final Answer:
The force varies as the first power of temperature, so x = 1.
\[ \boxed{\text{(D) }1} \]