Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Dem so co bao nhieu chu so
- // Khai bao cac ham thu vien neu co
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int n;
- scanf("%d",&n);
- int dem=0;
- while(n!=0)
- {
- n=n/10;
- dem++;
- }
- printf("%d\n",dem);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement