1.

Give the output of the following code segment:<SCRIPT LANGUAGE="JavaScript">var sum, a;sum = 0;a = 1;do{sum = sum + a;a = a+2;}while(a<=8)document.write(sum);</SCRIPT>

Answer»

The output is :

16



Discussion

No Comment Found

Related InterviewSolutions