What will be the output of the following program segment- for(i=1;i<=10;i=i+2) { sum=sum+ i; } System.out.println(sum);
25
55
26
24
Answers
Answered by
3
Answered by
2
Answer:
What will be the output of the following program segment- for(i=1;i<=10;i=i+2) { sum=sum+ i; } System.out.println(sum);
25
55
26
24
Explanation:
hloooooo hiiiiii shouryaa goooddd morning ❤❤❤❤
Similar questions