#include #include #include using namespace std; int tab[101]; int main() { srand(time(NULL)); for (int i = 0; ; i++) { int los = (rand() % (99)+1); if (los % 2 == 1) { tab[los] = tab[los] + 1; } int ilosc = 0; for (int a = 1; a < 101; a++) { if (tab[a] == 0) { ilosc = ilosc + 1; } } if (ilosc == 0) { break; } } for (int i = 0; i < 101; i++) { if (tab[i] == 1) { cout << i << " " << endl; } } system("pause"); return 0; }