Delta Air Lines Inc. swung to a profit in the second quarter, bolstered by higher yield, load factor and passenger revenue as capacity decreased, the company said Monday.