#include <iostream>
using namespace std;
int main()
{
const int arrLength = 10;
int arr[arrLength];
int evenDigits = 0;
for (int i = 0; i < arrLength; i++) {
short int randomNumber = 1 + rand() % 100;
arr[i] = randomNumber;
cout << "arr[" << i << "] " << randomNumber << endl;
if ((randomNumber & 1) == 0) {
evenDigits++;
}
cout << "Count of even digits: " << evenDigits << endl;
return 0;
#include <iostream>
using namespace std;
int main()
{
const int arrLength = 10;
int arr[arrLength];
int evenDigits = 0;
for (int i = 0; i < arrLength; i++) {
short int randomNumber = 1 + rand() % 100;
arr[i] = randomNumber;
cout << "arr[" << i << "] " << randomNumber << endl;
if ((randomNumber & 1) == 0) {
evenDigits++;
}
}
cout << "Count of even digits: " << evenDigits << endl;
return 0;
}