Hi - this may be a very simple answer but I just cannot see it. I am also just beginning C programming by book and have no one to turn to but this very helpful forum. Thank You.

Here is source:

#include <stdio.h>

int main (int argc, const char * argv[]) {

int i;

for ( i = 1; i <= 20; i++ ) {

printf( "The number %d is ", i );

if ( (i % 2) == 0 )

printf( "even" );

else

printf( "odd" );

if ( (i % 3) == 0 )

printf( " and is a multiple of 3" );

printf( ".\n" );

}

return 0;

}

Here is my problem with the above code:

If the % operator is doing math - and if i is being divided by 2 "leaving a remainder?" and if that remainder is even than it will be 0 and if odd it will be 1

Should I look at it like this?

i-1 ---- so 1/2= .5 thus .5=odd ---remainder = odd

i=2 ---- so 2/2=1 thus 1=odd --- remainder = odd?

Iam confused