What jobs did Zachary Taylor do before his president?

i do not know the answer about zachary taylor.