Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ main
Function
main
CPP/Maths/CountDigit.cpp:9–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
}
8
9
int main()
10
{
11
int n;
12
cin >> n;
13
if (n == 0)
14
{
15
cout << 0;
16
}
17
else
18
{
19
n = abs(n);
20
cout << countDigits(n);
21
}
22
23
return 0;
24
}
Callers
nothing calls this directly
Calls
1
countDigits
Function · 0.85
Tested by
no test coverage detected