Untitled
#include <iostream> using namespace std; int main() { int A, tempA; int count = 0; cin >> A; tempA = A; while (tempA > 0) { tempA /= 10; count += 1; } cout << count; }
#include <iostream> using namespace std; int main() { int A, tempA; int count = 0; cin >> A; tempA = A; while (tempA > 0) { tempA /= 10; count += 1; } cout << count; }