Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int n,i,y;
- n=15234;
- y=1;
- while (n>=10)
- {
- n=n/10;
- y++;
- }
- printf("%d dígitos \n",y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement