I am looking for a tiny example of writing in
algorithm2e an algorithm using a subroutine.
The algorithm is called
algo, and it recursively calls a subroutine called
It should be something like below in one environment:
Algorithm 1 algo() 1 xxx 2 xxx 3 proc() 4 return Procedure proc() 1 xxx 2 return
I do not want to write these two things using two different algorithm environments. Can anyone show me an example?