The sentence was given by Additional District and Sessions Judge, Hisar, Vimal Kumar yesterday who found them guilty.
Four robbers had looted Rs 3.31 lakh from the Kaimari road branch of Punjab National Bank in Hisar at gunpoint on December 4, 2012.
According to prosecution, the four robbers, whose faces were covered with masks, even shot the manager of the bank when he refused to obey them.
On a complaint of Priya Singal, the bank's cashier, Sadar Police had registered a case of robbery under relevant sections of the Arms Act on December 4.