I would like to get the following output, but the code given below produces a different output.
Here is my code.
\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{This is Algo. 1}
\textbf{Input: } The . \
\textbf{Output: } .
\begin{algorithmic}[1]
\State Here.....
\end{algorithmic}
\end{algorithm}
\floatname{algorithm}{Procedure}
\begin{algorithm}
\caption{\textproc This is procedure 1 }
\textbf{Input: } The. \\
\textbf{Output: } .
\begin{algorithmic}[1]
\State Here....
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\caption{This is procedure 2}
\textbf{Input: } The. \
\textbf{Output: } .
\begin{algorithmic}[1]
\State Here....
\end{algorithmic}
\end{algorithm}
\begin{algorithm}
\caption{This is Algo. 2}
\textbf{Input: } The. \
\textbf{Output: } .
\begin{algorithmic}[1]
\State Here .....
\end{algorithmic}
\end{algorithm}
\end{document}


But with above mention code output is like that, Algorithm 1: Procedure 2: Procedure 3: Procedure 4:
– Learner Dec 31 '22 at 09:49