(I am being honest, it is an assignment that I have attempted)
I have a question/assignment that requires me to do a for loop that counts to a specific number (i am using 25) and skips every number that is (for example) divisible by 3.
I have tried this:
int o;
for (o = 1; o <= 25; o++)
{
if (o % 3)
continue;
Console.WriteLine(o);
}
My solution didn't work, nor did google help me out that much... I know the answer is super simple and I am just missing it somehow because I am tired.
Thanks in advance.