Untitled
Anonymous
C++
10/16/2023 8:45 PM
262 B
23
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
int n;
int cum = 0;
cin >> n;
while (n > 0) {
n % 10;
n /= 10;
cum = cum +1;
}
cout << cum;
}
Editor is loading...