#includeIn this code, we use the "find" function from the#include int myArray[] = {2, 4, 6, 8, 10}; const int arraySize = 5; int main() { if (std::find(std::begin(myArray), std::end(myArray), 10) != std::end(myArray)) { std::cout << "Value 10 exists in the array.\n"; } else { std::cout << "Value 10 does not exist in the array.\n"; } return 0; }