A:Size medium should fit your height.
Most bike manufacturers have size recommandations so it is best to fit your bike according to it.
Bike size also depend on other body measurement like torso and inseam which is the inside of your leg from crotch to the ankle. But if your body is average and you are not a professional - then height should be good enough.