โช 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;
}
void summation (n)
int n;
{
int i; sum = 0;
i = 1;
for(i = 1; i < = n; i++)
sum+= i;
}