All pastes #223940 Raw Edit

Stuff

public c v1 · immutable
#223940 ·published 2006-10-27 04:52 UTC
rendered paste body
        while (rowcount <= 8) {                scanf("%c", &c);                if( c >= 48 && c <= 57 ) {                        puzzle[rowcount][colcount] = letterToInt(c);                        colcount++;                        numnines++;                }                if (colcount == 9){                        colcount = 0;                }                if (numnines == 9) { //if you filled up a whole row with 9 nums                        numnines = 0; //then go back to zero                        rowcount++; //move on to a new row                }        }