Which of the following will count down from 10 to 1 correctly?

a. for (int j = 10; j <= 1; j++)
b. for (int j = 1; j <= 10; j++)
c. for (int j = 10; j > 1; j--)
d. for (int j = 10; j >= 1; j--)


d. for (int j = 10; j >= 1; j--)

Computer Science & Information Technology

You might also like to view...

The buttons under ________ on the Design tab are used to run, test, or modify a macro

Fill in the blank(s) with correct word

Computer Science & Information Technology

PowerPoint can create slides from a Word outline if it is open or closed

Indicate whether the statement is true or false

Computer Science & Information Technology

________ Time measures the amount of time that a processor spends working on a task

Fill in the blank(s) with correct word

Computer Science & Information Technology

Functions that used to be provided by expansion cards are more often found as onboard ports today.

a. true b. false

Computer Science & Information Technology