RC-PoR-P-Source-cod/RC-PoR-P.cpp
string toBinary(int n){

  string res;
  while(n != 0) {
    res = (n % 2 == 0 ?"0":"1") + res;
    n /= 2;
  }
  return res;
}
//===============================
// description: converts integer "n" to a binary string.
converts integer "n" to a binary string.
converts integer " n " to a binary string .
string toBinary(int n){
  string res;
  while(n != 0) {
    res = (n % 2 == 0 ?"0":"1") + res;
    n /= 2;
  }
  return res;
}
string toBinary ( int n ) { string res ; while ( n != 0 ) { res = ( n % 2 == 0 ? " " : " " ) + res ; n /= 2 ; } return res ; }
description: converts integer "n" to a binary string.
description : converts integer " n " to a binary string .