void sumcif(int n, int &s) { if (n == 0) s = 0; else { sumcif(n / 10, s); s = s + n % 10; } }