The Britannic only served as a hospital ship, and was unarmed. However, the Olympic served as a troop transport and was armed with a "12-pounder gun on the forecastle" and two 4,7" guns on the poop deck. So, as a troop transport the Titanic would have probably been armed as well (hospital ships...