int x = 1; while (x < 100) { if (!(x % 3)) cout << x << ","; else if (x / 10) break; x += 2; } cout << x;
1
3,9,11
3,6,9,10
1,5,7,11,13,15