ein or einen?

Compare nominative and accusative articles. Only the masculine singular indefinite article changes: ein → einen.
Ein Salat ist auf dem Tisch. Ich nehme einen Salat.
Feminine eine and neuter ein have the same forms in the nominative and accusative. Other cases have different forms.