Viagra, or sildenafil, is the drug primarily used to treat erectile dysfunction , a ailment where males have challenges achieving or maintaining an erection . Beyond this purpose, it can found off-label in the management of pulmonary hypertension and specific ailments. However that Viagra functio