how to use the mouse scroll wheel to move the camera in unity

Code Example - how to use the mouse scroll wheel to move the camera in unity

                
                        float scroll = Input.GetAxis ("Mouse ScrollWheel");
    transform.LookAt (target);
    transform.Translate(0, 0, scroll * speed, Space.Self);