Untitled
//КОШЕЛЕВ ДАНИИЛ //произведение чисел #include <iostream> using namespace std; int main() { int a; bool boo = true; cin >> a; int bo = 0; while (a>0) { bo += a % 10; a = (a - a % 10) / 10; } cout << bo; }
//КОШЕЛЕВ ДАНИИЛ //произведение чисел #include <iostream> using namespace std; int main() { int a; bool boo = true; cin >> a; int bo = 0; while (a>0) { bo += a % 10; a = (a - a % 10) / 10; } cout << bo; }