`for (int cnt = 0; cnt < 200; cnt++) {`

if (cnt % 13 == 0) {

System.out.println("#: " + cnt);

}

This program works just fine but i don't understand it.

How is variable cnt get a remainder by dividing it to 13 when cnt is initialized to zero

`cnt % 13 == 0`

cnt divided by 0 so there's no remainder.

so it prints out

`#: 0`

so it loops back again and it checks if variable cnt is still less than 200

cnt divided by 13 no remainder again so i'ts still zero but it it prints out 13

`#: 13`

so again loops back again then it prints out

`#: 26`

It keeps adding.

Does the number 13 assigns to variable cnt??

Could someone explain this better to me. thank you.