Question 5
Consider the following code.
#include <stdio.h>int main() { int n, i, s = 0; scanf("%d", &n);
for (i = 2; i < n; i++) { if (n % i != 0) { continue; } s += i; }
printf("%d", s); return 0; }Let the input is a positive integer in the given program. What does the code do?
Calculates the sum of all factors of input integer n (excluding 1 and n).
Calculates the sum of all non-factors of input integer n between 1 and n.
Calculates the sum of all odd value factors of input integer n (excluding 1 and n).
Calculates the sum of all even value factors of input integer n (excluding 1 and n).