I need to find the general solution of a differential equation in explicit form
$$\dfrac {dp}{dh} = -Kp$$
My solution: I used the separation of variables and after doing the integrations I obtained $\ln p = -Kh + c$
The general solution in explicit form, by an index law I obtained $$p = e^c e^{-Kh}$$ $$p = Ae^{-Kh}$$
Is my working correct, please?
Yes, your solution is correct.