Bad Master Cylinder or Air in Lines?

While running pump the pedal until it is firm. If it holds in the same place it is air in the lines, if it slowly descends to the floor it is the master cylinder.