All pastes #747555 Raw Edit

Unnamed

public c v1 · immutable
·published 2007-10-24 03:50 UTC
rendered paste body
#include <stdio.h>        int x;        int y;        char checkers[8][8];int main() {        for (x=0;x<8;x++) {                for (y=0;y<8;y++) {                        if ((x==1) || (x==0)) {checkers[x][y]= 'X';}                        else if ((x==6) || (x==7)) {checkers[x][y] = 'O';}                        else {checkers[x][y] = ' ';}                }        }        printf("   1   2   3   4   5   6   7   8\n");        for (x=0;x<8;x++) {                printf("%d ",x +1);                for (y=0;y<8;y++) {                        printf("[%c] ",checkers[x][y]);                }                printf("\n");        }}