The horizontal component of the velocity will be constant during the
projectile motion. Horizontal component of the initial velocity, ux=v0cosθ0. Horizontal component of the velocity when the
particle makes an angle θ with horizontal, vx=vcosθ.
Hence, vcosθ=v0cosθ0⇒v=v0cosθ0cosθ