#include <stdio.h> #include <string.h> int main() { char i, j = 0, k, a[101] = {0}; while (j < 100) { for (i = 1; i <= 100; i++) { if (!a[i]) { k++; } if (k == 30) { printf("%d\n", i); k = 0; a[i] = 1; j++; } } } return 0; }