njgvdsvjiguihscv usvgf

郑震云  •  3个月前


include <stdio.h>

int main() {

int n, i, s = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
	if (n % i == 0) {
		s = s + i;
	}

}
printf("%d", s);
return 0;

}


评论:

请先登录,才能进行评论