i am using the following code to put three figures in a row but it puts them in a column. how can i fix it?
\documentclass[a4paper,12pt]{report}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{figure}[h]
\centering
\begin{subfigure}[h]{0.3\textwidth}
\includegraphics[width=\textwidth]{a}
\end{subfigure}%
\begin{subfigure}[h]{0.3\textwidth}
\includegraphics[width=\textwidth]{b} \end{subfigure}
\begin{subfigure}[h]{0.35\textwidth}
\includegraphics[width=\textwidth]{c} \end{subfigure}
\end{figure}
\end{document}
