Computer Applications
Give two differences between Step loop and Continuous loop.
Java Iterative Stmts
45 Likes
Answer
In Continuous loop, loop control variable is incremented or decremented by 1 in each iteration whereas in Step loop the loop control variable is incremented or decremented by more than 1 in each iteration.
Answered By
33 Likes
Related Questions
State one difference and one similarity between while loop and do-while loop.
State one similarity and one difference between while and for loop.
Predict the Output of the following Java program:
class dkl { public static void main(String args[]) { int i; for(i = -1;i<10;i++) { System.out.println(++i); } } }
Predict the Output of the following Java program:
class dk2 { public static void main(String args[]) { int i=2,k=1; while (++i<6) k *= i; System.out.println(k); } }