Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Count number of digitis

Given a file like the following, write a program that will count how many times each digit appears:

23  4565676 14343
14423 563  353