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