int highNum = 0; int list[4] = {10, 4, 7, 8}; for (int m = 0 ; m < list.size() ; m++) { if (list[m] > highNum) highNum = list[m]; } cout << highNum;