Untitled
unknown
plain_text
a year ago
461 B
1
Indexable
Never
#include <stdio.h> int main() { int x, rem, sum = 0; scanf("%d", &x); for (int i = 1; i <= x; i++) { rem = x % i; if (rem == 0) { if (i % 2 == 0) { printf("1 %d ", i); sum = sum + i; } } } if (sum > 0) { printf("Sum = %d", sum); } else { printf("NULL"); } return 0; }