I would follow Robin2 and create a first-case statement followed by the loop. If you want to stick to the loop, another option would be
for(i = 1; i <= 42; i++)
{
// some arbitrary variable, call it X
X = (i == 1)?22:i;
}
I would follow Robin2 and create a first-case statement followed by the loop. If you want to stick to the loop, another option would be
for(i = 1; i <= 42; i++)
{
// some arbitrary variable, call it X
X = (i == 1)?22:i;
}