Name: ________________________________ Section: _________________
Honor Code Acknowledgment: ___________________
Due: September 20
Dice cube;
will NOT compile. In one sentence, why?
int prod = 1;
int num = 11;
int k = 1;
while (k <= num)
{
prod = prod * k;
k += 1;
}
cout << prod << endl;