Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
count number of digits in a number
Mahmud33
Jun 30th, 2019
49
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int
main
(
)
{
int
i
,
n
,
c
=
0
;
scanf
(
"%d"
,&
n
)
;
while
(
n
!=
0
)
{
n
/=
10
;
c
++;
}
printf
(
"%d
\n
"
,
c
)
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
MainScript 4
CSS | 24 min ago | 1.73 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 38 min ago | 0.39 KB
Interceptor JS
JavaScript | 50 min ago | 3.15 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 56 min ago | 0.38 KB
Sigma style
LScript | 1 hour ago | 0.10 KB
M1SCO Style
LScript | 1 hour ago | 0.09 KB
Kiwami style
LScript | 1 hour ago | 0.10 KB
Tardis - Alarm System
Lua | 1 hour ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!