Driver Code
public static void Main ( String [ ] args ) { char [ , ] keypad = { { '1' , '2' , '3' } , { '4' , '5' , '6' } , { '7' , '8' , '9' } , { ' * ' , '0' , ' # ' } } ; Console . Write ( " Count ▁ for ▁ numbers ▁ of . Length ▁ { 0 } : ▁ { 1 } STRNEWLINE " , 1 , getCount ( keypad , 1 ) ) ; Console . Write ( " Count ▁ for ▁ numbers ▁ of . Length ▁ { 0 } : ▁ { 1 } STRNEWLINE " , 2 , getCount ( keypad , 2 ) ) ; Console . Write ( " Count ▁ for ▁ numbers ▁ of . Length ▁ { 0 } : ▁ { 1 } STRNEWLINE " , 3 , getCount ( keypad , 3 ) ) ; Console . Write ( " Count ▁ for ▁ numbers ▁ of . Length ▁ { 0 } : ▁ { 1 } STRNEWLINE " , 4 , getCount ( keypad , 4 ) ) ; Console . Write ( " Count ▁ for ▁ numbers ▁ of . Length ▁ { 0 } : ▁ { 1 } STRNEWLINE " , 5 , getCount ( keypad , 5 ) ) ; } }