Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
However, with this code both boxes appear in different lines, and I would like to have them on the same line and to be able to adjust the distance between them using\hspace*{}.
How can this be done, preferably in a simple way?
Edit:the answers I received here are way more helpful, short and elegant than those provided in the related question that caused the close votes. For this reason, I don't believe the question should be closed.