What will the following program segment do?

int counter{1};
do
{
cout < } while (++counter<;= 10);
a. Print the numbers 1 through 11.
b. Print the numbers 1 through 10.
c. Print the numbers 1 through 9.
d. Cause a syntax error.

b. Print the numbers 1 through 10.

Computer Science & Information Technology

You might also like to view...

Clicking the Date icon in the Design tab will only add the date to the ________ section

Fill in the blank(s) with correct word

Computer Science & Information Technology

In _____, a young Finnish student named Linus Torvalds developed the Linux operating system.

A. 1991 B. 1992 C. 1993 D. 1994

Computer Science & Information Technology