Doing it in SPSS for 2 X 2 table
2. Choose Analyze, Descriptive Statistics and Crosstabs
3. Move 'drink' variable to the row box and 'smoke' variable to the column box
4. Click Statistics and check Chi-Square and Cramer's V
5. Check Expected and Observed in Cell display