Computer Sciences Corp. (NYSE: CSC) swung to a third quarter loss of $8.96 per share from earnings of $1.57 per share in the year ago period but the results were better than expected.