Change the predetermined command “Require” in “algorithm package”

algorithmicxformatting

How to change the predetermined command "Require" in "algorithm package".

I want to write input instead of Require

this is my code:

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage{algpseudocode}

\begin{document}

\begin{algorithm}
\begin{algorithmic}
\Require Instead of write Require I want to write  \textbf{Input}
\While{$N \neq 0$}\
Output $ =$  Content
\EndWhile\\
\end{algorithmic}
\end{algorithm}
\end{document}

Best Answer

Please try this:

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage{algpseudocode}
\renewcommand{\algorithmicrequire}{\textbf{Input:}} %% <--                      
\begin{document}
\begin{algorithm}
\begin{algorithmic}
\Require Instead of write Require I want to write  \textbf{Input}
\While{$N \neq 0$}\
Output $=$  Content
\EndWhile
\end{algorithmic}
\end{algorithm}
\end{document}

enter image description here