Powered By Blogger

venerdì 13 marzo 2009

esercizio numero 2 della verifica

#includeint x=0;
char piramide[ ]={'' ,'' ,'' ,'' ,'' ,'' ,'' , ' ' ,'' ,'' ,'' ,'' ,'' ,' ' , ' ' ,' ' ,'' ,'' ,'' ,' ' ,' ' , ' ' ,' ' ,' ' ,'' ,' ' ,' ' ,' '};
void stampaBoard(){ int resto; for (x=0; x<28; x++){ resto=x%7; if (resto!=0){ printf("%c" ,piramide[x]); } else{ printf("\n%c", piramide[x]); } }}
main(){ stampaBoard();}

Nessun commento: