San Francisco

 Microsoft said Tuesday it posted a profit of $3.1 billion in the just-ended quarter, swinging back into the black a year after hefty charges from writing off mobile phone assets.

"This past year was pivotal in both our own transformation and in partnering with our customers who are navigating their own digital transformations," said chief executive Satya Nadella.