What is wrong with the following code?

int total, number;
int counter = 0;
while (counter < 10)
{
cin >> number;
total = total + number;
counter = counter + 1;
}


total must be initialized to 0.

Computer Science & Information Technology

You might also like to view...

After you mark text as a(n) ________ entry, a field is inserted to the right of the selected text

Fill in the blank(s) with correct word

Computer Science & Information Technology

The width attribute sets the width of a text field

Indicate whether the statement is true or false

Computer Science & Information Technology

Outlook allows you to create the equivalent of paper notes using the ____________________ feature.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You have just installed a DHCP server and created a new scope with the default options. A DHCP client leases an IP address at 8:00am on Monday, February 3rd. When will the client lease expire if it is never renewed?

A. Later that day at 4:00pm B. February 11 at 8:00am C. Tuesday, February 4 at 8:00am D. February 6 at 4:00pm

Computer Science & Information Technology