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 term cloud is based on the cloud-shaped image used in networking diagrams to illustrate the Internet

Indicate whether the statement is true or false

Computer Science & Information Technology

The big-O value O(1) is named logarithmic.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology