Computer Science, asked by starchase, 5 months ago

predict the output
public static void main(String args[])

{

int sum=o;

for(int i=15; i>10;i++)

{

sum=sum+i;

}

System.out.println(sum)

}
please answer only if you know.

Answers

Answered by MathyAditya
1

Answer:

OOH BHAI MARO MUJHE MARO

Apne is for loop ke terminate hi nahi kya I=15 and I>10 now the loop will go till infinity and it will give you the result here the out put will be 15, 16 , 17

Similar questions