Driver code to test above methods
static public void Main ( ) { int [ , ] mat = { { 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 1 } , { 0 , 1 , 1 , 0 } , { 0 , 1 , 0 , 0 } } ; Console . WriteLine ( getTotalCoverageOfMatrix ( mat ) ) ; } }