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
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
Math,
2 months ago
Business Studies,
2 months ago
Hindi,
2 months ago
English,
5 months ago
Environmental Sciences,
10 months ago
Business Studies,
10 months ago