Which of the following is the appropriate for header for varying the control variable over the following sequence of values: 3, 6, 9, 12?

a) for ( int i = 3; i <= 12; i++ )
b) for ( int i = 12; i > 0; i -= 3 )
c) for ( int i = 3; i <= 12; i -= 3 )
d) for ( int i = 3; i <= 12; i += 3 )
e) None of the above.

d) for ( int i = 3; i <= 12; i += 3 )

Computer Science & Information Technology

You might also like to view...

The Fair Information Practices standards conflict with the information gathering goals of ______ and ______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

For NIS to operate correctly, the RPC ____ must run on both the NIS client and server.

A. client B. map C. domain D. portmapper

Computer Science & Information Technology