Can goto() statements be avoided in this program -- pls place code?

Can goto() statements be avoided in this program

Yes.

-- pls place code?

Replace "goto L0;" with "return;".