What is the following summation fuction doing?
		
					

Loading

โœช Choose the correct option.

What is the following summation fuction doing?


void summation (n)
int n;
{
int i; sum = 0;
i = 1;
for(i = 1; i < = n; i++)
sum+= i;
}

A. sum of the n numbers
B. nth number
C. Compilation Error
D. None of these

Leave a Comment