Ex-5 print different variables