srand(time(0));
const int size = 10;
int A[size]{};
for (size_t i = 0; i < size; i++)
{
cout << endl;
int summ = 0;
for (size_t i = 0; i < size; i++)
{
cout << "Summ = " << summ << endl;
system("pause");
const int size = 10;
int A[size]{};
for (size_t i = 0; i < size; i++)
{
A[i] = rand() % 101;}
cout << A[i] << "\t";
cout << endl;
int summ = 0;
for (size_t i = 0; i < size; i++)
{
if (A[i] % 3 == 0 && A[i] % 5 != 0)}
summ+=A[i];
cout << "Summ = " << summ << endl;
system("pause");
Комментариев нет:
Отправить комментарий