NEW YORK (Reuters) - Microsoft Corp reported its first quarterly loss as a public company on Thursday as it took a previously announced hit for writing down the value of its ailing online unit, but held up better than expected in the face of stagnant computer sales.