In the minipage environment with listing and figure I'd like to have three separate captions a, b, c evenly as the picture below:
But my try with this minimal code results an untidy captions as below:
\documentclass[11pt]{article}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{graphicx}
%\usepackage{caption}
\begin{document}
\begin{figure}[h!]
\noindent\begin{minipage}{0.3\textwidth}
\begin{lstlisting}[]
while(a < 0){
a++;
}
\end{lstlisting}
\caption{C program}
\end{minipage}%
\noindent\begin{minipage}{0.45\textwidth}
\begin{align*}
&F_1(a, b) \leftarrow a \le 0 \\
&F_2(a, b) \leftarrow F_1(a, b) \\
\end{align*}
\caption{Automata}
\end{minipage}%
\noindent\begin{minipage}{0.3\textwidth}
\includegraphics[scale=0.2]{example-image-a}
\caption{Relation}
\end{minipage}%
\caption{overal blablablablablabla caption}
\end{figure}
\end{document}
How can I get rid of Figure keyword and get a, b, c caption in the same level?



