Anti clock wise spiral


its showing runtime

sc and sr are already 0 and you are reducing them further , then you are using them as index (a negative number as index of array) which leads to Run Time Error.