Computer Science, asked by rahul197531, 8 months ago

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 krishdevil429
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