1.

Write the value that will be stored in variable sum after execution of following code: int sum = 0, m=4; for(int i=9;i>=6;i) {if(i%3==0) sum = sum + i; else sum = sum i; }

Answer»

The answer is sum = 0



Discussion

No Comment Found

Related InterviewSolutions