Thanks to the easing cost pressures, as many as 20 companies returned to profits in the quarter ended June, after posting a loss in the March quarter.