#include <iostream>
#include <Time.h>
using namespace std;

int main()
{
	int i;
	
	srand(time(0));
	int *a = new int[30];

	for (int i = 0; i < 30; i++)
	{
		a[i] = rand() % 56 - 10;
		cout << a[i] << " ";
	}

	cout << endl << endl<<"i: ";
	
	for (i = 0; i<30; i++)
	if (a[i] % 2 == 0){
		cout << i<< " ";
	}
	cout << endl;
	system("pause");
	return 0;
}
