You integrate and assume the constant is zero.
The constant carries the initial state, and it is zero only if the question says so. In resisted motion it holds the whole condition. Substitute the given values on the line you integrate.
Next time: Find the constant immediately, from the stated conditions.