#include <stdio.h> int main() { int i, j = 0; for (i = 0;i <= 100;i += 15) while (j = (j+1) % 5) if (i+j*3 <= 100) printf("%d\t", i+j*3); printf("\n%d\n", 100/3 - 100/15); return 0; }