1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <stdio.h> int main(void) { int A=2;int B=100; A+=(A % 2)?3-A % 3:0; while (A<=B) { printf("%d ",A); A+=2; } return 0; }