Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ binary
Function
binary
CPP/Decimal_to_Binary.cpp:4–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
using namespace std;
3
4
void binary(int n){
5
if(n==0){
6
return;
7
}
8
binary(n/2);
9
cout<<(n%2);
10
}
11
12
int main(){
13
int n;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected