//DISPLAY 3.10 The Increment Operator as an Expression //Calorie-counting program. #include using namespace std; int main( ) { int numberOfItems, count, caloriesForItem, totalCalories; cout << "How many items did you eat today? "; cin >> numberOfItems; totalCalories = 0; count = 1; cout << "Enter the number of calories in each of the\n" << numberOfItems << " items eaten:\n"; while (count++ <= numberOfItems) { cin >> caloriesForItem; totalCalories = totalCalories + caloriesForItem; } cout << "Total calories eaten today = " << totalCalories << endl; return 0; }