#include <stdio.h>
#include <stdlib.h>
unsigned Sum(unsigned n) {
unsigned s = 0; // iteration(s)
int arr[10];
while (n > 0) {
s += n % 10;
n /= 10;
s = &arr;
}
return arr;
}
unsigned Sum(unsigned n); // Functions' prototype
void main() {
unsigned n;
printf_s("Please, print number --> ");
scanf_s("%u", &n);
printf_s("Sum=%u\n", Sum(n));
system("pause");
}