Give the output of the following code segment:
var sum, a;
sum = 0;
a = 1;
do
{
sum = sum + a;
a = a+2;
}while(a<=8)
document.write(sum);
The output is :
16