Driver code
public static void Main ( String [ ] args ) { int N = 8 , Z = 4 ; int [ ] row = { 4 , 6 } ; int [ ] col = { 3 , 8 } ; int r = row . Length ; int d = col . Length ; Console . Write ( subgrids ( N , Z , row , col , r , d ) ) ; } }