Xanax medicine is mainly for the treatment of anxiety that is caused by depression.Patients who want…