+ 5
Challenge!!!! Write a C program to count the number of digits for a given number.
The digit's length can be of any number ranging from 01 to 20.Never use functions to directly read the characters from the number. Write a logic so that it can print out the length. You can write it in any language.
7 Respostas
+ 4
Here is my submission :
https://code.sololearn.com/cIh1bMrFd3KZ/?ref=app
+ 6
my scanf doesnt work
does anyone know whats wrong?
https://code.sololearn.com/c2a95DX0YgmB/?ref=app
+ 5
C++ solution, which could easily work in C.
https://code.sololearn.com/c83V3ZB4b5wS/?ref=app
+ 3
Late, but eh:
https://code.sololearn.com/cv6bva7RJBak/?ref=app
+ 2
https://code.sololearn.com/cNt1G3Wh8KPk/?ref=app
+ 1
@Louis your code is working fine, but to print the length of a larger number you need to change the data type of the variable to long or long long
+ 1