using namespace std;
int main() {int arr[30] = {12, 34, 56, 78, 90, 23, 45, 67, 89, 10, 32, 54, 76, 98, 21, 43, 65, 87, 19, 31, 53, 75, 97, 87, 43, 65, 87, 19, 31, 53};int max = arr[0];
}
using namespace std;
int main() {
for (int i = 1; i < 30; i++) {int arr[30] = {12, 34, 56, 78, 90, 23, 45, 67, 89, 10, 32, 54, 76, 98, 21, 43, 65, 87, 19, 31, 53, 75, 97, 87, 43, 65, 87, 19, 31, 53};
int max = arr[0];
if (arr[i] > max) {
max = arr[i];
}
}
cout << "Максимальный элемент в массиве: " << max << endl;
return 0;
}