What to do in an armed robbery or active shooter situation

You’re at a bank, a gas station or a small store; a person walks in. You see a weapon, and you think it’s an armed robbery.