Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    The code assumes that the user input always comes in a single block, which is unrealistic. The code must work even if it receive chars one at the time, or two, or three ... whatever. Commented Feb 15, 2018 at 18:33
  • 1
    Not only does it assume user input always comes in a single block, anything less than a full block of 5 characters gets thrown in the garbage and is lost forever. Commented Feb 15, 2018 at 18:44