2 points
How many times will the following
loop execute ? public void main() { int
sum=0; for(int i=10;i>5;i++){ sum+=1;}
System.out.println(sum);}
1. 5
2. 15
3.0
4.infinite loop
Answers
Answered by
1
Answer:
2 points
How many times will the following
loop execute ? public void main() { int
sum=0; for(int i=10;i>5;i++){ sum+=1;}
System.out.println(sum);}
1. 5
2. 15
3.0
4.infinite loop
Similar questions