Its been 3 years since i have been trying to lose weight with some dedication and pills, i have been able to achieve some weight loss, i consumed pills for weight and followed strict diet followed by workout, but i gained weight as soon as i stopped training.

I am unable to understand is it the pills that helped me lose weight or was it the workout.