0

I want to write the second question which is 5+ 4 in the horizontal line after the first question, how can I write that?

\usepackage{tcolorbox}
\begin{document}
    \begin{tcolorbox}[width=\textwidth,title={\hskip 70mm Add the following numbers},colbacktitle=yellow,coltitle=blue]    


\begin{tabular}{cc}
    
    & 2\\
+   &3\\
&\rule{10mm}{.3mm} \\
&\rule{10mm}{.3mm} \\
\end{tabular}


\begin{tabular}{cc}
    
    & 5\\
    +   &4\\
    &\rule{10mm}{.3mm} \\
    &\rule{10mm}{.3mm} \\
\end{tabular}

 



    \end{tcolorbox}    
    
\end{document}
3
  • Remove the empty lines between the two tabular environments.
    – leandriis
    Commented May 21, 2021 at 5:54
  • was your problem solved
    – js bibra
    Commented Jun 2, 2021 at 5:25
  • @Sachin would you like to accept and upvote the answer
    – js bibra
    Commented Oct 22, 2021 at 6:44

1 Answer 1

1

enter image description here

\documentclass[a4paper]{article}
% \usepackage[dvipsnames]{xcolor}
\usepackage{tcolorbox}
\begin{document}
    \begin{tcolorbox}[width=\textwidth,title={\hskip 60mm Add the following numbers},colbacktitle=yellow,coltitle=blue]    


        \begin{tabular}{cccccc}
            
            &   2               &   &   5               \\
        +   &   3               &+  &   4               \\
            &\rule{10mm}{.3mm}  &   &\rule{10mm}{.3mm}  \\
            &\rule{10mm}{.3mm}  &   &\rule{10mm}{.3mm}  \\
        \end{tabular}
    \end{tcolorbox}    
\end{document}
1
  • @Sachin would you like to accept and upvote the answer
    – js bibra
    Commented Feb 20, 2022 at 1:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .