Answers for "algorithm creator online latex"

0

using latex to write algorithm

\begin{program}
\mbox{A fast exponentiation procedure:}
\BEGIN \\ %
  \FOR i:=1 \TO 10 \STEP 1 \DO
     |expt|(2,i); \\ |newline|() \OD %
\rcomment{This text will be set flush to the right margin}
\WHERE
\PROC |expt|(x,n) \BODY
          z:=1;
          \DO \IF n=0 \THEN \EXIT \FI;
             \DO \IF |odd|(n) \THEN \EXIT \FI;
\COMMENT{This is a comment statement};
                n:=n/2; x:=x*x \OD;
             \{ n>0 \};
             n:=n-1; z:=z*x \OD;
          |print|(z) \ENDPROC
\END
\end{program}
Posted by: Guest on July-23-2020
0

algorithm creator online latex

start 
input 3 numbers (a,b,c)
store the value in variables (a,b,c)
if (a>b)
  a if(a>c)
    print,a is greatest
    else,print c is greatest 
 else if (b>c)
   if true print ,b is greatest 
   else, c is greatest 
   stop
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language