Untitled
Anonymous
c_cpp
10/19/2023 4:56 PM
348 B
21
Indexable
//КОШЕЛЕВ ДАНИИЛ
//произведение чисел
#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;
}Editor is loading...