Map string to alphanumeric keypad in C
If you haven't understood the title, here is an explanation: Input a string The program will tell you what buttons you need to press how many times in an alpha numeric keypad. Example: input: blog output: 22 55 666 4 Logic? - Initialise a 2D array which holds values of all buttons. - Get the input string. - Loop through each elements in the array and check it with the 2D array. - The row index will tell you which button should be pressed. - The column index will tell how many times to press it. - In each loop concat the row index with the result string and display it !! 2D array for keypad: The 2D initialisation: 10 rows and max number of characters in a button : 4 char keys[10][4]={ "XXXX", "...