Identify all the compound statements which appear in the following program segment:

c) Identify all the compound statements which appear in the following program segment:
{
sum=0;
do{
scanf(“%d”, &i);
if (i < 0)
{
i=-i;
++flag;
}
sum += i;
} while (i != 0);
}


Leave a Reply