In the book of Kondepudi & Prigogine, Modern Theormodynamics, at page 87, in question 2.18, it is asked that
$$ \begin{array}{l}{\mathrm{O}_{2} \text { is flowing into a nozzle with a velocity } v_{\mathrm{i}}=50.0 \mathrm{m} \mathrm{s}^{-1} \text { at } T=300.0 \mathrm{K} \text { . The temperature of the gasflowing out of the nozzle is } 270.0 \mathrm{K} \text { (a) Assume the ideal gas law for the flowing gas and calculate }} \\ {\text { the velocity of the gas flowing out of the nozzle. (b) If the inlet diameter is } 5.0 \mathrm{cm}, \text { what is the outlet diameter? }}\end{array} $$
For the part $a-)$, I thought since there is no energy loss or gain is mentioned, the total energy of the substance must be preserve. Moreover, since the velocity is constant when the gas goes in/out, we can take a section of the nozzle, and consider the energy of the gas in that section. This implies that, for the gas whose volume is $\pi (2,5cm)^2 dx = dV$ has a total energy $$E = U + KE = 2.5 * NRT + 0.5 N(32g)v^2.$$
By energy conservation, this implies $$2,5 NR(300K) + 0.5 N (32g) (50m/2)^2 = 2,5 NR(270K) + 0.5 N(32g)v_f^2,$$ hence we can determine the velocity of the gas when it goes out of the nozzle; I've found this quantity as ~$203m/s$.
However, I have almost no idea why we can obtain the radius of the nozzle (part b-)). I mean, knowing the internal energy allows us to calculate $pV$, and from that, if we know the pressure, we can determine the radius from the volume, but I don't see any way to calculate $p$ without knowing $V$.