#include "stdio.h" #include "stdlib.h" #include "time.h" int main() { int i; char a, b; srand((unsigned)time(NULL)); a = 6; b = rand() % 6 + 1; for (i = 1; i <= 100; i++) { a = rand() % 31 + 1; if (a >= 7 && a <= 13) { a = 17; } if (i % 9 == 0) { printf("%d.%c ", i, b); } else { printf("%d.%c ", i, a); } if (i % 5 == 0) { printf(" "); } } getchar(); printf("the icon you guess is: "); for (i = 1; i <= 10; i++) { printf("%c ", b); } printf(" "); return 0; }