Question: According to class material, in Java, the control variable of a counter-controlled loop should be declared as ___ to prevent errors. 1. (a) double 2.

  1. According to class material, in Java, the control variable of a counter-controlled loop should be declared as "___" to prevent errors.

    1.

    (a) double

    2.

    (b) float

    3.

    (c) int

    4.

    (d) String

    5.

    (e) All of (a) through (d) can equally prevent errors.

Step by Step Solution

3.49 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer c int Explan... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!