NEC Corp. is back in the black after posting 30.2 billion yen in consolidated pretax profit for the business year that ended March 31, the major computer and chip manufacturer reported Friday.

The result marks a recovery from the 224.7 billion yen loss that NEC suffered the previous year.

On a group basis, NEC posted 4.99 trillion yen in sales, up 4.9 percent from the previous year, while its operating profit soared to 110.4 billion yen from 3.1 billion yen.