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

```
while (y > 0) {
cout << y << endl;
++y;
}
```

The variable y should be decremented (i.e., --y;), not incremented (++y;).

Computer Science & Information Technology

You might also like to view...

To create a pie chart, two data series, the labels and a set of corresponding values are required

Indicate whether the statement is true or false

Computer Science & Information Technology

The IF function can have a maximum of ________ argument(s)

A) one B) four C) three D) two

Computer Science & Information Technology