1.

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.​

Answer»

OOH BHAI MARO MUJHE MAROApne 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



Discussion

No Comment Found