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