1. Engineering
  2. Computer Science
  3. identify and correct the errors in each of the following...

Question: identify and correct the errors in each of the following...

Question details

Identify and correct the error(s) in each of the following:

int x = 1, total;

while ( x <= 10) {

total += x;

++x;

}

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution