Code style
Indentation
Code style
Replace goto with break
Move ep and eg to smaller scope
Move eg to smaller scope
Move i,j,ep,eg to smaller scope
Code style
Move n to smaller scope
Code style
Code style
Replace if with return
Code style
Code style
Code style
Code style
Indentation; Code style
Code style
Indentation
Code style