srand(time(0));
const int size = 20;
int A[size]{};
for (size_t i = 0; i < size; i++)
{
cout << endl << "simple numbers is: ";
for (size_t i = 0; i < size; i++)
{
cout << endl;
system("pause");
const int size = 20;
int A[size]{};
for (size_t i = 0; i < size; i++)
{
A[i] = rand() % 101;}
cout << A[i] << " ";
cout << endl << "simple numbers is: ";
for (size_t i = 0; i < size; i++)
{
for (int j = 2; j <= A[i]; j++)}
{
if (A[i] %j == 0)}
{
if (A[i] != j)}
break;cout << A[i] << " ";
break;
cout << endl;
system("pause");
Комментариев нет:
Отправить комментарий