+ 2
DIGIT QUANTITIES
How can i make the code that will output how many digits the number I entered? For example: The input:6 The output:1 The input:82 The output:2 The input:828 The output:3 The input:8282062 The output:7 --------------------------------------- |But it must include "if,else,cin" in c++.| ---------------------------------------
5 ответов
+ 4
Well, I am luring you to python!😂😂 So, don't mind.
In python, it's oneliner
print(len(str(input())))
+ 2
Roneel 😂😂
+ 1
This might help
https://code.sololearn.com/ccNwEd3n007z/?ref=app
0
https://code.sololearn.com/cNh2AUouzyPr/?ref=app
digit quantities in java😅
0
Dividing an integer with more than 1 digit by 10 will remove the rightmost digit.