srand(time(0));
const int size = 20;
int A[size]{};
for (size_t i = 0; i < size; i++)
{
cout << endl;
int index_1 = 0;
int index_2 = 0;
int index_3 = 0;
for (size_t i = 0; i < size; i++)
{
cout << "three- digit number - " << index_3 << endl
const int size = 20;
int A[size]{};
for (size_t i = 0; i < size; i++)
{
A[i] = rand() % 201;}
cout << A[i] << " ";
cout << endl;
int index_1 = 0;
int index_2 = 0;
int index_3 = 0;
for (size_t i = 0; i < size; i++)
{
if (A[i] > 99)}
index_3++;else if (A[i] > 9 && A[i] < 100)
index_2++;else
index_1++;
cout << "three- digit number - " << index_3 << endl
<< "two- digit number - " << index_2 << endlsystem("pause");
<< "one- digit number - " << index_1 << endl;
Комментариев нет:
Отправить комментарий