Update lcs.c

Adjust The Code Style, fixed the enter char problem