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.
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
Answer c int Explan... View full answer
Get step-by-step solutions from verified subject matter experts
