Step 1: Solve the differential equation.
The given differential equation is:
\[
\left( y + x \frac{dy}{dx} \right) \sin y = \cos x
\]
We want to find the particular solution, which involves solving for \( y \) in terms of \( x \).
Step 2: Substitute \( x = 0 \) and \( y = 0 \).
At \( x = 0 \), substitute \( y = 0 \) and solve for the constants involved in the equation.
\[
\sin(0) + \cos(0) = 1
\]
Thus, the particular solution is \( \boxed{\sin x + \cos y = 1} \).