The medication , commonly known as Viagra, is a doctor-approved treatment primarily used to address difficulty achieving an erection in individuals. Developed initially for heart conditions , its unanticipated side effects relating to the widening of blood vessels led to its repurposing as an powerful solution for sexual health issues . It works by