MCPcopy 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

2using namespace std;
3
4void binary(int n){
5 if(n==0){
6 return;
7 }
8 binary(n/2);
9 cout<<(n%2);
10}
11
12int main(){
13 int n;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected