Viagra, or sildenafil , is generally prescribed to address erectile dysfunction for men. It can also be used in certain situations for addressing lung conditions . Its how it works involves widening arteries in the male reproductive area allowing for greater blood flow and enabling an erection .