6. Develop a LaTeX script to include the side-by-side graphics/pictures/figures in the document by using the subgraph concept.
PROGRAM:
\documentclass{article}
\usepackage{graphicx} % Required for including images
\usepackage{subcaption} % Required for subfigures
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.46\linewidth} % Subfigure environment for the first image
\includegraphics[width=\linewidth]{image1.jpg} % Include image1.jpg
\caption{Caption for image 1} % Caption for the first image
\label{fig:subfig1} % Label for referencing the first image
\end{subfigure}
\hfill % Add horizontal space between subfigures
\begin{subfigure}{0.44\linewidth} % Subfigure environment for the second image
\includegraphics[width=\linewidth]{image2.png} % Include image2.png
\caption{Caption for image 2} % Caption for the second image
\label{fig:subfig2} % Label for referencing the second image
\end{subfigure}
\caption{Combined caption for both images} % Overall caption for the figure
\label{fig:subfigures} % Label for referencing the entire figure
\end{figure}
\end{document}
OUTPUT: