Mr Yeddyurappa and Mr Sriramulu represented Shimoga and Bellary seats in the Lok Sabha, respectively.
The two BJP leaders had tendered their resignations after declaration of the Karnataka Assembly poll results.
Mr Yeddyurappa, who was the chief ministerial candidate of the BJP, won from the Shikaripura assembly seat with a margin of over 35,000 votes. Mr Sriramulu had contested from Badami and Molakalmuru, but registered victory from the latter.
Mr Kumaraswamy, who will lead the JD(S)-Congress alliance in the state, will be sworn in as the chief minister of the state tomorrow.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections. Election results will be out on May 23.