Hello, I need to make a document in latex but it doesn't come out, I have this
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{circuitikz}
\usepackage{float}
\begin{document}
\begin{circuitikz}
\draw
node[american xor port]{} % Mejor con la pancita mas redonda no se como
;
\end{circuitikz}
\begin{tabular}{|l|l|l|}
\hline
X & Y & S \\
\hline
0 & 0 & 0 \\
\hline
0 & 1 & 1 \\
\hline
1 & 0 & 1 \\
\hline
1 & 1 & 0 \\
\hline
\end{tabular}
% I want the O with x inside
X Ox Y
\begin{tabular}{|l|l|l|l|l|}
\multicolumn{ 3}{l}{Input} & \multicolumn{ 2}{l}{Output} \\ \hline
X0 & X1 & X2 & A & B \\ \hline
0 & 0 & 0 & 0 & 0 \\ \hline
0 & 0 & 1 & 1 & 0 \\ \hline
0 & 1 & 0 & 0 & 1 \\ \hline
0 & 1 & 1 & 1 & 1 \\ \hline
1 & 0 & 0 & 0 & 0 \\ \hline
1 & 0 & 1 & 1 & 1 \\ \hline
1 & 1 & 0 & 1 & 1 \\ \hline
1 & 1 & 1 & 1 & 1 \\ \hline
\hline
\end{tabular}
\end{document}
This code is in latex and it gives me this
What I want is that the symbol of the xor the table and the formula are on the same line. Then below the table in the center and below the table these two photos
I don't understand why it separates everything into lines and doesn't put it straight and if someone can help me put the tables it would be better because I don't understand the tabulation thing well (I tried to do it in some ways but I get an error in texmaker) Thank you all anticipated