To level up attack first in Zelda II for the NES.
You can't, the game forces you to level up in the order of its own choosing. You have no choice.
Pick "Cancel" when you get to 50, then 100, experience points. At 200, you can pick attack.