venerdì 27 febbraio 2009

esercizio 2 verifica

#include
int i=0;
char disegno[]={
'|','|','|','|','|','|','|',
' ','|','|','|','|','|',' ',
' ',' ','|','|','|',' ',' ',
' ',' ',' ','|',' ',' ',' '};
void stampaDisegno(){
for(i=0;i<28;i++){
int resto;
resto=a%7;
if (resto!=0){
printf("%c",disegno[i]);
}
else{
printf("\n%c",disegno[i]);
}
}
}
Int main()
{
stampaDisegno();
}

Nessun commento: