i still very newbie, and i was working on this simple project. basically we have to display a checkerboard pattern like this :

Code:
``` *  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *
*  *  *  *  *  *  *  *```
with only using these tree output statements once :

Code:
```printf ( "* " );
printf ( " " );
printf ( "\n" );```
this is my progress this far, can anyone tell me what is my mistake ?

Code:
```#include <stdio.h>

main ()
{

int row = 1; // declare the interger
int column; // declare the 2nd interger

while ( row <= 8 ) { // open curly bracket for the 1st 'while'

column = 1; // declare the value of interger

while ( column <= 8 ) { // open curly bracket for the 2nd 'while'

printf ( "* " );
column++;

if ( row &#37; 2 == 0 && column == 2 ) { // open curly bracket for 'if'

printf ( " " );

} // close bracket for 'if'
}// close bracket for inner 'while'

row++ ;
printf( "\n" );

} // close bracket for outer 'while'

return 0;

}```
that's all ! thx !

2. 1. use for loops where it makes sense (it does here)
2. You should print a space at the start of every even row

For example:
Code:
```   for(row = 1; row <= 8; row++)
{
if(row &#37; 2 == 0)
printf(" ");

for(col = 1; col <= 8; col++)
{
printf(" *");
}

printf("\n");
}```

3. wow ! thx mate ! never thought of that...

4. ## Check

To do that I would simply type:

Code:
```main()
{
int repeat;

for(repeat=0;repeat<4;repeat++)
{
printf("* * * * * * * *\n * * * * * * * *\n");
}
}```
I tried it and it worked

-C-Compiler

5. Except the original post says:
with only using these tree output statements once :

Code:

printf ( "* " );
printf ( " " );
printf ( "\n" );
So using longer printf's isn't following the specification.
--
Mats