Calories counting loop
<p>Question:
Create a program that first asks the user to enter the number of items he/she has eaten today and then to enter the number of calories for each item. It then calculates the number of calories he/she has eaten for the day and displays the value.</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main()
{
    int numberOfItems;
    int count; // loop counter for the loop
    int caloriesForItem;
    int totalCalories;
    cout &lt;&lt; "How many items did you eat today? ";
    cin &gt;&gt; numberOfItems;
    cout &lt;&lt; "Enter the number of calories in each of the " &lt;&lt; numberOfItems &lt;&lt; " items eaten:" &gt;&gt; endl;

    while (caloriesForItem)
    {
        cout &lt;&lt; "Please enter item calories:";
        cin &gt;&gt;caloriesForItem;
        count == numberOfItems;

    }


    cout &lt;&lt; "Total calories eaten today = " &lt;&lt; totalCalories;
    return 0;
}
</code></pre>

<p>In the end I'm not sure how I would make it read and calculate as it says it must be a while loop.</p>