sir why do not you write the while condition without =operator? to avoid writing if condition in the body of while loop
like : while(start_row<end_row&& start_col<end_col)
and why do we just write if statement for last two statements(( bottom row&& first coloumn )) not the four statements