Improve grammaticallity of the given sentence.
For the past few centuries, engineers and scientists have been working together, resulting to numerous great discoveries and inventions benefiting mankind in various aspects.
For the past few centuries, engineers and scientists have been working together, resulting in numerous great discoveries and inventions benefiting mankind in various aspects.