Evaluate the following definite integral : $$\int_0^{\pi/2}\cfrac{\cos x}{\sqrt{1-\sin x}} \qquad \qquad \qquad (1)$$
\begin{align} & = \int_0^{\pi/2}\cfrac{\cos x}{\sqrt{1-\sin x}} \ \ I \ used \ u=1-\sin x \ and \ dx= \cfrac{-du}{cosx} \\ & = -\int_1^0\cfrac{du}{\sqrt u} \\ & = \int_0^1\cfrac{du}{\sqrt u} \\ & = 2\sqrt u |_0^1 \\ & = 2-0 =2 \\ \end{align} But Symbolab says that is 0, what i have done wrong in (1) ?

Symbolab is wrong here, $\cos(x) \geq 0$ on the interval and $\sqrt{1-sin(x)} \geq 0$ on the interval, with regions where both functions are strictly positive.