Java Program for Triangle Part - 3