Can goto() statements be avoided in this program
Yes.
-- pls place code?
Replace "goto L0;" with "return;".