zj 5 rokov pred
rodič
commit
a0f264141e
1 zmenil súbory, kde vykonal 15 pridanie a 0 odobranie
  1. 15 0
      E.cpp

+ 15 - 0
E.cpp

@@ -0,0 +1,15 @@
+#include<bits/stdc++.h>
+
+using namespace std;
+
+int main() {
+    int n;
+    cin >> n;
+    int len = 0;
+    while (n > 0) {
+        n /= 10;
+        len++;
+    }
+    cout << len << endl;
+    return 0;
+}