//с++ #include #include signed main() { setlocale(LC_ALL, "Rus"); int N, _sum = 0, _prod = 1; std::cin >> N; N = abs(N); while (N > 0) { _sum += N % 10; _prod *= N % 10; N /= 10; } std::cout << "Сумма: " << _sum << std::endl; std::cout << "Произведение: " << _prod << std::endl; return 0; }