Example Code(Is Wrong but a reference):
for (int i = 0; i < 10; i++)
{
if ((i % 3) == 0 )
{
Console.WriteLine(i+":x");
}
else if ((i % 2) == 0
{
Console.WriteLine(i+":y");
}
else
{
Console.WriteLine(i+":z");
}
}
Result I Want:
1:x 2:y 3:z 4:x 5:y 6:z 7:x 8:y 9:z 10:x
You want…
or less complicatedly…