
CodePudding user response:
Before the ch2=getchar () add getchar () to handle goodBecause when entering a carriage return and a carriage return residues in the input buffer, so add getchar () to empty the carriage return
CodePudding user response:
Before the ch2=getchar () add getchar () to handle good