Which block of code will sum the numbers from 1 to n (including n) and store it in the variable "sum"? code example
Example: Which block of code will sum the numbers from 1 to n (including n) and store it in the variable "sum"?
int sum = 0;
for (int count = 1; count <= n; count++) {
sum = count;
}