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...

Which of the following is NOT a comparison operator symbol?

A) ? B) < C) >= D) =

Computer Science & Information Technology

Software assurance is the level of confidence that software functions in the intended manner and is free from vulnerabilities.

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

Computer Science & Information Technology