Update the coordinates that lie within the rectangle
for ( int i = 0 ; i < N ; i ++ ) { updateArray ( A [ i , 0 ] , A [ i , 1 ] , A [ i , 2 ] , A [ i , 3 ] ) ; } int area = findAreaCovered ( ) ; Console . Write ( area ) ; } }