diff --git a/countOfDigitsInaNumber.cpp b/countOfDigitsInaNumber.cpp new file mode 100644 index 0000000..b98ab84 --- /dev/null +++ b/countOfDigitsInaNumber.cpp @@ -0,0 +1,10 @@ +#include +#include +using namespace std; +int main() { + int n; + cin>>n; + int k = log10(n)+1; + cout<