giovedì 19 febbraio 2009

esercizio filetto

#include
int i=0;
char scacchiera[ ]={'-','-','-','-','-','-','-',
'|',' ','|',' ','|',' ','|',
'-','-','-','-','-','-','-',
'|',' ','|',' ','|',' ','|',
'-','-','-','-','-','-','-',
'|',' ','|',' ','|',' ','|',
'-','-','-','-','-','-','-'};
void stampaBoard(){
for (i=0; i<49; i++){
printf("%c",scacchiera[i]);
}
}
main(){
stampaBoard();
}

Nessun commento: