Untitled
unknown
plain_text
2 years ago
179 B
7
Indexable
#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; }
Editor is loading...
#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; }